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
- ConfigLoader.cs
- TripleDESCryptoServiceProvider.cs
- ConnectionManagementElementCollection.cs
- ImageMap.cs
- GridSplitter.cs
- ViewBox.cs
- SqlProfileProvider.cs
- Brush.cs
- PriorityBinding.cs
- DataReceivedEventArgs.cs
- TrackingMemoryStream.cs
- EncoderReplacementFallback.cs
- XmlUnspecifiedAttribute.cs
- MenuItem.cs
- Size3D.cs
- DoubleCollectionConverter.cs
- Int32.cs
- OdbcConnectionOpen.cs
- XmlSchemaComplexContentRestriction.cs
- OnOperation.cs
- SmiEventSink_DeferedProcessing.cs
- DesignerSerializerAttribute.cs
- Missing.cs
- MergeFilterQuery.cs
- _SpnDictionary.cs
- ThreadExceptionEvent.cs
- CTreeGenerator.cs
- XmlTextReader.cs
- Popup.cs
- Ref.cs
- DataGridViewCellStyle.cs
- AuthenticationService.cs
- TemplateBuilder.cs
- PathData.cs
- ParserContext.cs
- QuaternionValueSerializer.cs
- AssociationTypeEmitter.cs
- TdsParameterSetter.cs
- FrameworkElementFactory.cs
- KeyValuePairs.cs
- Menu.cs
- TimeoutValidationAttribute.cs
- AutomationPropertyInfo.cs
- VisualTreeUtils.cs
- DetailsViewModeEventArgs.cs
- ResourcePool.cs
- HtmlControl.cs
- ContainerParaClient.cs
- prompt.cs
- _PooledStream.cs
- DelegatingChannelListener.cs
- EntityClientCacheEntry.cs
- TextTreeUndo.cs
- Matrix.cs
- SqlComparer.cs
- CodeTypeConstructor.cs
- TemplateColumn.cs
- ListView.cs
- TemplatedEditableDesignerRegion.cs
- SolidColorBrush.cs
- SystemColors.cs
- XmlStreamNodeWriter.cs
- HostingEnvironmentSection.cs
- RecipientInfo.cs
- SafeRightsManagementHandle.cs
- DynamicExpression.cs
- GlyphInfoList.cs
- BufferedWebEventProvider.cs
- DesignerProperties.cs
- LifetimeServices.cs
- MemberDescriptor.cs
- GridItemPatternIdentifiers.cs
- SwitchElementsCollection.cs
- AnalyzedTree.cs
- DropShadowBitmapEffect.cs
- XmlnsDictionary.cs
- ToolStripDropTargetManager.cs
- ListViewPagedDataSource.cs
- WindowsFormsHostAutomationPeer.cs
- LayoutEditorPart.cs
- XmlSchemaCompilationSettings.cs
- HandleCollector.cs
- Axis.cs
- DataColumnCollection.cs
- _UriTypeConverter.cs
- TemplateNameScope.cs
- RangeValuePatternIdentifiers.cs
- SecurityDescriptor.cs
- LocalFileSettingsProvider.cs
- SchemaImporter.cs
- HwndStylusInputProvider.cs
- WebDisplayNameAttribute.cs
- LoginName.cs
- ClientFormsAuthenticationCredentials.cs
- Helpers.cs
- HttpListener.cs
- XPathDocumentBuilder.cs
- CollectionConverter.cs
- TextLineResult.cs
- SiteMap.cs