Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / DesignerDeviceConfig.cs / 1305376 / DesignerDeviceConfig.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Web.UI.MobileControls.Adapters; using System.Web.Util; namespace System.Web.UI.MobileControls { // Data structure for a specialized version of IndividualDeviceConfig, // used in design mode. [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.")] class DesignerDeviceConfig : IndividualDeviceConfig { internal DesignerDeviceConfig(String pageAdapterType) : base(Type.GetType (pageAdapterType)) { } internal override IControlAdapter NewControlAdapter(Type originalControlType) { IControlAdapter adapter; IWebObjectFactory adapterFactory = LookupControl(originalControlType); if (adapterFactory != null) { adapter = (IControlAdapter) adapterFactory.CreateInstance(); } else { DesignerAdapterAttribute da; da = (DesignerAdapterAttribute) TypeDescriptor.GetAttributes(originalControlType) [typeof(DesignerAdapterAttribute)]; if (da == null) { return new EmptyControlAdapter(); } Type adapterType = Type.GetType(da.TypeName); if (adapterType == null) { return new EmptyControlAdapter(); } adapter = Activator.CreateInstance(adapterType) as IControlAdapter; } if (adapter == null) { adapter = new EmptyControlAdapter(); } return adapter; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualTarget.cs
- IntersectQueryOperator.cs
- HyperLinkField.cs
- PropertiesTab.cs
- XPathDescendantIterator.cs
- CompatibleIComparer.cs
- DeferrableContent.cs
- XPathParser.cs
- CryptoKeySecurity.cs
- MediaScriptCommandRoutedEventArgs.cs
- ExpandCollapseIsCheckedConverter.cs
- MaterialCollection.cs
- ObjectPersistData.cs
- ActiveXSite.cs
- DataGridViewSortCompareEventArgs.cs
- DataGridViewCellEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- DataGridViewComboBoxCell.cs
- MobileControlsSectionHelper.cs
- SimpleWebHandlerParser.cs
- DependencySource.cs
- Error.cs
- EntityContainer.cs
- RuntimeUtils.cs
- TextPattern.cs
- MailAddressCollection.cs
- XamlToRtfParser.cs
- SharedPersonalizationStateInfo.cs
- ConstructorNeedsTagAttribute.cs
- XamlSerializerUtil.cs
- WindowsGraphicsCacheManager.cs
- WebPartMinimizeVerb.cs
- WFItemsToSpacerVisibility.cs
- MDIWindowDialog.cs
- CommandDevice.cs
- X509CertificateClaimSet.cs
- CharKeyFrameCollection.cs
- BindingElementExtensionElement.cs
- CustomValidator.cs
- odbcmetadatacolumnnames.cs
- DesignerLoader.cs
- AspCompat.cs
- basevalidator.cs
- DropTarget.cs
- MainMenu.cs
- DocumentPageTextView.cs
- TableHeaderCell.cs
- MgmtConfigurationRecord.cs
- LeftCellWrapper.cs
- DSGeneratorProblem.cs
- StorageComplexPropertyMapping.cs
- DocumentViewerAutomationPeer.cs
- PixelFormat.cs
- BrowserDefinition.cs
- DrawingVisualDrawingContext.cs
- NewExpression.cs
- ConfigsHelper.cs
- KeyProperty.cs
- ImportCatalogPart.cs
- MetadataItem_Static.cs
- AsyncStreamReader.cs
- TableRowGroupCollection.cs
- PageHandlerFactory.cs
- FieldTemplateFactory.cs
- TdsParserStateObject.cs
- DataSetMappper.cs
- DynamicAttribute.cs
- Html32TextWriter.cs
- MdImport.cs
- ButtonStandardAdapter.cs
- DbParameterCollectionHelper.cs
- HtmlCalendarAdapter.cs
- XamlReaderConstants.cs
- SmiXetterAccessMap.cs
- WinFormsComponentEditor.cs
- ObjectConverter.cs
- PrtTicket_Public.cs
- TemplateBamlTreeBuilder.cs
- APCustomTypeDescriptor.cs
- GridViewSortEventArgs.cs
- SlotInfo.cs
- Viewport3DVisual.cs
- SettingsPropertyValue.cs
- WorkflowInstanceAbortedRecord.cs
- PrintDialog.cs
- NameValueFileSectionHandler.cs
- SqlServices.cs
- RotateTransform.cs
- TextStore.cs
- coordinatorfactory.cs
- ChannelCredentials.cs
- CommandBinding.cs
- CapabilitiesAssignment.cs
- StrokeNode.cs
- ProcessThreadDesigner.cs
- SspiSecurityTokenProvider.cs
- RuntimeArgumentHandle.cs
- DispatcherEventArgs.cs
- ArraySet.cs
- ContextMenuService.cs