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