1 //------------------------------------------------------------------------------
2 // <copyright file="Constants.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //------------------------------------------------------------------------------
6 
7 using System.Security.Permissions;
8 
9 namespace System.Web.UI.MobileControls
10 {
11 
12     /// <include file='doc\Constants.uex' path='docs/doc[@for="ObjectListViewMode"]/*' />
13     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
14     public enum ObjectListViewMode
15     {
16         /// <include file='doc\Constants.uex' path='docs/doc[@for="ObjectListViewMode.List"]/*' />
17         List,
18         /// <include file='doc\Constants.uex' path='docs/doc[@for="ObjectListViewMode.Commands"]/*' />
19         Commands,
20         /// <include file='doc\Constants.uex' path='docs/doc[@for="ObjectListViewMode.Details"]/*' />
21         Details
22     };
23 
24     /// <include file='doc\Constants.uex' path='docs/doc[@for="BooleanOption"]/*' />
25     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
26     public enum BooleanOption
27     {
28         /// <include file='doc\Constants.uex' path='docs/doc[@for="BooleanOption.NotSet"]/*' />
29         NotSet = -1,
30         /// <include file='doc\Constants.uex' path='docs/doc[@for="BooleanOption.False"]/*' />
31         False,
32         /// <include file='doc\Constants.uex' path='docs/doc[@for="BooleanOption.True"]/*' />
33         True,
34     };
35 
36     /// <include file='doc\Constants.uex' path='docs/doc[@for="FontSize"]/*' />
37     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
38     public enum FontSize
39     {
40         /// <include file='doc\Constants.uex' path='docs/doc[@for="FontSize.NotSet"]/*' />
41         NotSet,
42         /// <include file='doc\Constants.uex' path='docs/doc[@for="FontSize.Normal"]/*' />
43         Normal,
44         /// <include file='doc\Constants.uex' path='docs/doc[@for="FontSize.Small"]/*' />
45         Small,
46         /// <include file='doc\Constants.uex' path='docs/doc[@for="FontSize.Large"]/*' />
47         Large
48     };
49 
50     /// <include file='doc\Constants.uex' path='docs/doc[@for="Alignment"]/*' />
51     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
52     public enum Alignment
53     {
54         /// <include file='doc\Constants.uex' path='docs/doc[@for="Alignment.NotSet"]/*' />
55         NotSet,
56         /// <include file='doc\Constants.uex' path='docs/doc[@for="Alignment.Left"]/*' />
57         Left,
58         /// <include file='doc\Constants.uex' path='docs/doc[@for="Alignment.Center"]/*' />
59         Center,
60         /// <include file='doc\Constants.uex' path='docs/doc[@for="Alignment.Right"]/*' />
61         Right
62     }
63 
64     /// <include file='doc\Constants.uex' path='docs/doc[@for="Wrapping"]/*' />
65     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
66     public enum Wrapping
67     {
68         /// <include file='doc\Constants.uex' path='docs/doc[@for="Wrapping.NotSet"]/*' />
69         NotSet,
70         /// <include file='doc\Constants.uex' path='docs/doc[@for="Wrapping.Wrap"]/*' />
71         Wrap,
72         /// <include file='doc\Constants.uex' path='docs/doc[@for="Wrapping.NoWrap"]/*' />
73         NoWrap
74     }
75 
76     /// <include file='doc\Constants.uex' path='docs/doc[@for="ListDecoration"]/*' />
77     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
78     public enum ListDecoration
79     {
80         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListDecoration.None"]/*' />
81         None,
82         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListDecoration.Bulleted"]/*' />
83         Bulleted,
84         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListDecoration.Numbered"]/*' />
85         Numbered
86     }
87 
88     /// <include file='doc\Constants.uex' path='docs/doc[@for="ListSelectType"]/*' />
89     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
90     public enum ListSelectType
91     {
92         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListSelectType.DropDown"]/*' />
93         DropDown,
94         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListSelectType.ListBox"]/*' />
95         ListBox,
96         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListSelectType.Radio"]/*' />
97         Radio,
98         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListSelectType.MultiSelectListBox"]/*' />
99         MultiSelectListBox,
100         /// <include file='doc\Constants.uex' path='docs/doc[@for="ListSelectType.CheckBox"]/*' />
101         CheckBox
102     }
103 
104     /// <include file='doc\Constants.uex' path='docs/doc[@for="FormMethod"]/*' />
105     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
106     public enum FormMethod
107     {
108         /// <include file='doc\Constants.uex' path='docs/doc[@for="FormMethod.Get"]/*' />
109         Get,
110         /// <include file='doc\Constants.uex' path='docs/doc[@for="FormMethod.Post"]/*' />
111         Post,
112     }
113 
114     /// <include file='doc\Constants.uex' path='docs/doc[@for="CommandFormat"]/*' />
115     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
116     public enum CommandFormat
117     {
118         /// <include file='doc\Constants.uex' path='docs/doc[@for="CommandFormat.Button"]/*' />
119         Button,
120         /// <include file='doc\Constants.uex' path='docs/doc[@for="CommandFormat.Link"]/*' />
121         Link,
122     }
123 
124     /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants"]/*' />
125     [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
126     [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
127     [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
128     public class Constants
129     {
130         internal const String ErrorStyle = "error";
131         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.FormIDPrefix"]/*' />
132         public static readonly String FormIDPrefix = "#";
133         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.UniqueFilePathSuffixVariableWithoutEqual"]/*' />
134         public static readonly String UniqueFilePathSuffixVariableWithoutEqual = "__ufps";
135         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.UniqueFilePathSuffixVariable"]/*' />
136         public static readonly String UniqueFilePathSuffixVariable = UniqueFilePathSuffixVariableWithoutEqual + '=';
137         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.PagePrefix"]/*' />
138         public static readonly String PagePrefix = "__PG_";
139         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.EventSourceID"]/*' />
140         public static readonly String EventSourceID = "__ET";
141         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.EventArgumentID"]/*' />
142         public static readonly String EventArgumentID = "__EA";
143 
144         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.HeaderTemplateTag"]/*' />
145         public static readonly String HeaderTemplateTag = "HeaderTemplate";
146         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.FooterTemplateTag"]/*' />
147         public static readonly String FooterTemplateTag = "FooterTemplate";
148         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.ItemTemplateTag"]/*' />
149         public static readonly String ItemTemplateTag = "ItemTemplate";
150         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.AlternatingItemTemplateTag"]/*' />
151         public static readonly String AlternatingItemTemplateTag = "AlternatingItemTemplate";
152         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.SeparatorTemplateTag"]/*' />
153         public static readonly String SeparatorTemplateTag = "SeparatorTemplate";
154         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.ContentTemplateTag"]/*' />
155         public static readonly String ContentTemplateTag = "ContentTemplate";
156         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.LabelTemplateTag"]/*' />
157         public static readonly String LabelTemplateTag = "LabelTemplate";
158         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.ItemDetailsTemplateTag"]/*' />
159         public static readonly String ItemDetailsTemplateTag = "ItemDetailsTemplate";
160         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.ScriptTemplateTag"]/*' />
161         public static readonly String ScriptTemplateTag = "ScriptTemplate";
162 
163         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.SymbolProtocol"]/*' />
164         public static readonly String SymbolProtocol = "symbol:";
165 
166         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.SelectionListSpecialCharacter"]/*' />
167         public static readonly char SelectionListSpecialCharacter = '*';
168 
169         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.DefaultSessionsStateHistorySize"]/*' />
170         public static readonly int DefaultSessionsStateHistorySize = 6;
171 
172         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.OptimumPageWeightParameter"]/*' />
173         public static readonly String OptimumPageWeightParameter = "optimumPageWeight";
174         /// <include file='doc\Constants.uex' path='docs/doc[@for="Constants.ScreenCharactersHeightParameter"]/*' />
175         public static readonly String ScreenCharactersHeightParameter = "screenCharactersHeight";
176     }
177 }
178