13 overrides of Device
System.Web.Mobile (13)
UI\MobileControls\Design\Adapters\DesignerAdRotatorAdapter.cs (1)
23
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerCalendarAdapter.cs (1)
23
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerCommandAdapter.cs (1)
26
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerImageAdapter.cs (1)
24
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerLabelAdapter.cs (1)
23
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerLinkAdapter.cs (1)
22
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerListAdapter.cs (1)
22
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerObjectListAdapter.cs (1)
22
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerSelectionListAdapter.cs (1)
22
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerTextBoxAdapter.cs (1)
28
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerTextViewAdapter.cs (1)
30
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerValidationSummaryAdapter.cs (1)
23
public override MobileCapabilities
Device
UI\MobileControls\Design\Adapters\DesignerValidatorAdapter.cs (1)
23
public override MobileCapabilities
Device
164 references to Device
System.Web.Mobile (164)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
142
_monthsToDisplay = MonthsToDisplay(
Device
.ScreenCharactersHeight);
UI\MobileControls\Adapters\ChtmlFormAdapter.cs (4)
33
if (!
Device
.RequiresOutputOptimization || Control.PageCount > 1)
104
String metaTagName =
Device
.RequiredMetaTagNameValue;
115
if (
Device
.RequiresContentTypeMetaTag &&
120
writer.Write(String.Format(CultureInfo.InvariantCulture, _contentTypeMetaTag,
Device
.PreferredRenderingMime, charset));
UI\MobileControls\Adapters\ChtmlImageAdapter.cs (3)
33
(
Device
.SupportsIModeSymbols ||
Device
.SupportsJPhoneSymbols))
35
if (
Device
.SupportsIModeSymbols)
UI\MobileControls\Adapters\ChtmlPageAdapter.cs (5)
162
return new ChtmlMobileTextWriter(writer,
Device
);
303
if (
Device
.RequiresUniqueHtmlCheckboxNames ||
304
Device
.RequiresUniqueHtmlInputNames)
314
if(
Device
.RequiresAttributeColonSubstitution)
374
if(
Device
.RequiresAttributeColonSubstitution)
UI\MobileControls\Adapters\ChtmlSelectionListAdapter.cs (4)
50
Device
.SupportsSelectMultiple == false)
57
if (!
Device
.RequiresUniqueHtmlCheckboxNames ||
80
if(
Device
.RequiresAttributeColonSubstitution)
100
Device
.SupportsUncheck)
UI\MobileControls\Adapters\ChtmlTextBoxAdapter.cs (3)
34
if (
Device
.SupportsInputIStyle)
43
else if (
Device
.SupportsInputMode)
80
if (
Device
.RequiresUniqueHtmlInputNames)
UI\MobileControls\Adapters\ControlAdapter.cs (2)
223
String pageWeight =
Device
[Constants.OptimumPageWeightParameter];
241
String numLinesStr =
Device
[Constants.ScreenCharactersHeightParameter];
UI\MobileControls\Adapters\HtmlCalendarAdapter.cs (2)
92
if (!
Device
.SupportsDivAlign)
97
if (
Device
.SupportsCss)
UI\MobileControls\Adapters\HtmlCommandAdapter.cs (2)
54
Device
.SupportsImageSubmit)
59
Device
.JavaScript)
UI\MobileControls\Adapters\HtmlControlAdapter.cs (2)
198
if (
Device
.SupportsAccesskeyAttribute)
219
if (
Device
.SupportsJPhoneMultiMediaAttributes)
UI\MobileControls\Adapters\HtmlFormAdapter.cs (6)
107
if (!
Device
.SupportsQueryStringInFormAction)
125
if (
Device
.SupportsQueryStringInFormAction)
200
if (!
Device
.SupportsQueryStringInFormAction)
219
String metaTagName =
Device
.RequiredMetaTagNameValue;
230
if (
Device
.RequiresContentTypeMetaTag &&
235
writer.Write(String.Format(CultureInfo.InvariantCulture, _contentTypeMetaTag,
Device
.PreferredRenderingMime, charset));
UI\MobileControls\Adapters\HtmlLabelAdapter.cs (1)
66
(
Device
.RequiresLeadingPageBreak) &&
UI\MobileControls\Adapters\HtmlListAdapter.cs (5)
77
if (decoration != ListDecoration.None || !
Device
.Tables)
91
if (!
Device
.RendersBreaksAfterHtmlLists)
111
if (!
Device
.RendersBreaksAfterHtmlLists)
117
if (
Device
.Tables)
185
if (decoration != ListDecoration.None || !
Device
.Tables)
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (2)
138
if (
Device
.Tables)
354
if(
Device
.Tables)
UI\MobileControls\Adapters\HtmlPageAdapter.cs (2)
132
if (
Device
.RequiresDBCSCharacter)
343
return new HtmlMobileTextWriter(writer,
Device
);
UI\MobileControls\Adapters\HtmlPhoneCallAdapter.cs (1)
48
if (
Device
.CanInitiateVoiceCall)
UI\MobileControls\Adapters\HtmlSelectionListAdapter.cs (6)
65
if(
Device
.RequiresAttributeColonSubstitution)
80
if (items.Count == 0 && !
Device
.CanRenderEmptySelects)
119
if(
Device
.HidesRightAlignedMultiselectScrollbars &&
148
if(!
Device
.Tables || alignment == Alignment.Left || alignment == Alignment.NotSet)
166
Device
.SupportsUncheck)
204
Device
.SupportsUncheck)
UI\MobileControls\Adapters\HtmlTextBoxAdapter.cs (1)
83
if(
Device
.RequiresAttributeColonSubstitution)
UI\MobileControls\Adapters\UpWmlPageAdapter.cs (1)
47
return new UpWmlMobileTextWriter(writer,
Device
, Page);
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (2)
124
_monthsToDisplay = MonthsToDisplay(
Device
.ScreenCharactersHeight);
332
bool addBreakBeforeListControl =
Device
.RendersWmlSelectsAsMenuCards;
UI\MobileControls\Adapters\WmlControlAdapter.cs (3)
91
softkeyLabel = softkeyLabel.Substring(0,
Device
.MaximumSoftkeyLabelLength);
139
if(name.Equals(formsAuthCookieName) &&
Device
.CanRenderOneventAndPrevElementsTogether )
252
softkeyLabel = softkeyLabel.Substring(0,
Device
.MaximumSoftkeyLabelLength);
UI\MobileControls\Adapters\WmlFormAdapter.cs (2)
50
if(!
Device
.SupportsRedirectWithCookie)
60
Device
.CanRenderOneventAndPrevElementsTogether &&
UI\MobileControls\Adapters\WmlLinkAdapter.cs (1)
47
bool breakAfter = Control.BreakAfter && !
Device
.RendersBreaksAfterWmlAnchor;
UI\MobileControls\Adapters\WmlObjectListAdapter.cs (7)
131
bool rendersAcceptsInline =
Device
.RendersWmlDoAcceptsInline;
132
bool rendersSelectsAsMenuCards =
Device
.RendersWmlSelectsAsMenuCards;
133
bool rendersBreaksAfterAnchor =
Device
.RendersBreaksAfterWmlAnchor;
241
String softkeyLabel = detailsCommandText.Length <=
Device
.MaximumSoftkeyLabelLength ?
271
String softkeyLabel = backCommandText.Length <=
Device
.MaximumSoftkeyLabelLength ?
381
return
Device
.ScreenCharactersHeight > 4 && VisibleTableFieldsCount * avgFieldWidth <
Device
.ScreenCharactersWidth;
UI\MobileControls\Adapters\WmlPageAdapter.cs (12)
137
return new WmlMobileTextWriter(writer,
Device
, Page);
151
if (
Device
.RequiresSpecialViewStateEncoding)
203
bool renderBackButton =
Device
.NumberOfSoftkeys > 2 && !
Device
.HasBackButton;
233
if (
Device
.SupportsCacheControlMetaTag)
350
if (
Device
.SupportsCacheControlMetaTag)
359
if (
Device
.CanCombineFormsInDeck)
460
String RequiresUTF8ContentEncodingString =
Device
["requiresUTF8ContentEncoding"];
484
String RequiresValueAttributeInInputTagString =
Device
["requiresValueAttributeInInputTag"];
508
if (
Device
.Browser == "Phone.com" &&
509
Device
.MajorVersion == 3 &&
510
Device
.MinorVersion < 0.3)
UI\MobileControls\Adapters\WmlPhoneCallAdapter.cs (3)
72
if (!
Device
.CanInitiateVoiceCall)
85
if(
Device
.RequiresPhoneNumbersAsPlainText)
119
softkeyLabel = softkeyLabel.Substring(0,
Device
.MaximumSoftkeyLabelLength);
UI\MobileControls\Adapters\WmlSelectionListAdapter.cs (1)
97
else if (
Device
.CanRenderSetvarZeroWithMultiSelectionList)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
120
_monthsToDisplay = MonthsToDisplay(
Device
.ScreenCharactersHeight);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCommandAdapter.cs (1)
63
Device
.SupportsImageSubmit) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (25)
100
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
118
if ((String)
Device
[XhtmlConstants.BreaksOnInlineElements] == "true") {
196
if ((String)
Device
["requiresAbsolutePostbackUrl"] == "true"
206
if ((String)
Device
[XhtmlConstants.SupportsUrlAttributeEncoding] != "false") {
235
String amp = (String)
Device
[XhtmlConstants.SupportsUrlAttributeEncoding] != "false" ? "&" : "&";
314
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
333
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
345
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
357
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
369
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
381
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
421
if ((String)
Device
[XhtmlConstants.RequiresOnEnterForward] == "true") {
425
String browserCap =
Device
[XhtmlConstants.InternalStyleConfigSetting];
467
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
486
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
521
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
527
if ((String)
Device
["usePOverDiv"] == "true") {
548
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true") {
554
if ((String)
Device
["usePOverDiv"] == "true") {
613
if (CssLocation == StyleSheetLocation.PhysicalFile && (String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
626
else if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
639
if (CssLocation == StyleSheetLocation.PhysicalFile && (String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
643
else if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true") {
653
if ((String)
Device
[XhtmlConstants.BreaksOnBlockElements] != "false") {
660
if ((String)
Device
[XhtmlConstants.BreaksOnInlineElements] == "true") {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicFormAdapter.cs (13)
40
if(!
Device
.SupportsRedirectWithCookie)
70
String amp = (String)
Device
[XhtmlConstants.SupportsUrlAttributeEncoding] != "false" ? "&" : "&";
72
if((String)
Device
[XhtmlConstants.SupportsUrlAttributeEncoding] != "false") {
81
bool needDivStyle = (String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true" &&
82
(String)
Device
["supportsBodyClassAttribute"] == "false";
84
if((String)
Device
["usePOverDiv"] == "true")
90
if((String)
Device
["usePOverDiv"] == "true")
102
if((String)
Device
["usePOverDiv"] == "true")
108
if((String)
Device
["usePOverDiv"] == "true")
127
if ((String)
Device
["requiresHiddenFieldValues"] != "true") {
208
if((String)
Device
["usePOverDiv"] == "true") {
224
if((String)
Device
["usePOverDiv"] == "true") {
370
if ((String)
Device
["requiresAbsolutePostbackUrl"] == "true") {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicListAdapter.cs (2)
67
if (!
Device
.Tables) {
108
if((string)
Device
["usePOverDiv"] == "true")
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicObjectListAdapter.cs (8)
227
if (!
Device
.Tables) {
333
if ((String)
Device
[XhtmlConstants.BreaksOnInlineElements] != "true") {
342
if ((String)
Device
[XhtmlConstants.BreaksOnInlineElements] != "true") {
353
if ((String)
Device
[XhtmlConstants.BreaksOnInlineElements] != "true") {
388
if (!
Device
.Tables) {
515
if ((String)
Device
[XhtmlConstants.BreaksOnInlineElements] != "true") {
534
if ((String)
Device
[XhtmlConstants.BreaksOnInlineElements] != "true") {
620
if (CssLocation == StyleSheetLocation.PhysicalFile ||
Device
["requiresXhtmlCssSuppression"] == "true") {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (17)
254
bool requiresComments = (String)
Device
["requiresCommentInStyleElement"] == "true";
273
return new XhtmlMobileTextWriter (writer,
Device
);
314
return(String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] == "true";
343
writer.UseDivsForBreaks = (String)
Device
[XhtmlConstants.BreaksOnInlineElements] == "true";
344
writer.SuppressNewLine = (String)
Device
[XhtmlConstants.RequiresNewLineSuppression] == "true";
345
writer.SupportsNoWrapStyle = (String)
Device
[XhtmlConstants.SupportsNoWrapStyle] != "false";
377
String supportsXmlDeclaration =
Device
["supportsXmlDeclaration"];
423
else if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true" &&
424
(String)
Device
[XhtmlConstants.SupportsBodyClassAttribute] != "false") {
449
if (cssClass != null && (String)
Device
["supportsBodyClassAttribute"] != "false") {
456
else if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true" &&
457
(String)
Device
[XhtmlConstants.SupportsBodyClassAttribute] != "false") {
462
if ((String)
Device
[XhtmlConstants.RequiresXhtmlCssSuppression] != "true" &&
463
(String)
Device
[XhtmlConstants.SupportsBodyClassAttribute] == "false") {
474
String amp = (String)
Device
[XhtmlConstants.SupportsUrlAttributeEncoding] == "false" ? "&" : "&";
476
if ((String)
Device
["requiresAbsolutePostbackUrl"] == "true") {
509
if ((String)
Device
[XhtmlConstants.SupportsUrlAttributeEncoding] != "false") {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPhoneCallAdapter.cs (2)
42
if (
Device
.CanInitiateVoiceCall) {
52
if ((String)
Device
["supportsWtai"] == "true") {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicSelectionListAdapter.cs (9)
45
if ((String)
Device
[XhtmlConstants.RequiresOnEnterForward] == "true") {
163
string wrappingTag =
Device
.Tables ? "table" :
164
(((string)
Device
["usePOverDiv"] == "true") ? "p" : "div");
178
if (
Device
.Tables) {
201
if (
Device
.Tables) {
204
if((string)
Device
["usePOverDiv"] == "true" || !
Device
.Tables) {
207
if (
Device
.Tables) {
217
if ((String)
Device
["supportsSelectFollowingTable"] == "false" && writer.CachedEndTag == "table") {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicTextBoxAdapter.cs (2)
49
if ((String)
Device
[XhtmlConstants.RequiresOnEnterForward] == "true") {
73
String requiresType =
Device
["requiresInputTypeAttribute"];