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
- SoapIncludeAttribute.cs
- SqlClientPermission.cs
- DbDeleteCommandTree.cs
- _NTAuthentication.cs
- ReceiveContextCollection.cs
- NotifyCollectionChangedEventArgs.cs
- HttpCachePolicyElement.cs
- Rotation3DAnimationBase.cs
- OleDbParameter.cs
- FixedElement.cs
- DataGridRelationshipRow.cs
- RubberbandSelector.cs
- CapabilitiesRule.cs
- XPathAncestorIterator.cs
- Int32AnimationUsingKeyFrames.cs
- PublishLicense.cs
- CopyAction.cs
- AnnouncementService.cs
- DictionaryEntry.cs
- StorageInfo.cs
- SqlCachedBuffer.cs
- PropertyGridEditorPart.cs
- GAC.cs
- TextTreeTextBlock.cs
- FormsAuthenticationEventArgs.cs
- httpserverutility.cs
- Scanner.cs
- RangeValueProviderWrapper.cs
- Camera.cs
- BaseTreeIterator.cs
- NominalTypeEliminator.cs
- DynamicQueryStringParameter.cs
- GenericWebPart.cs
- AnnotationObservableCollection.cs
- DateTimeSerializationSection.cs
- SHA1CryptoServiceProvider.cs
- TypeValidationEventArgs.cs
- FontDifferentiator.cs
- WindowsPen.cs
- BinaryCommonClasses.cs
- DebugHandleTracker.cs
- XamlTreeBuilderBamlRecordWriter.cs
- NativeMethods.cs
- EntityDataSourceView.cs
- HttpResponseInternalWrapper.cs
- EnumType.cs
- HttpException.cs
- Container.cs
- CharAnimationUsingKeyFrames.cs
- RestHandlerFactory.cs
- HttpMethodConstraint.cs
- MenuRendererStandards.cs
- ItemsChangedEventArgs.cs
- EntityDataSourceState.cs
- JsonWriter.cs
- SimpleColumnProvider.cs
- NamedPipeChannelFactory.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- PreProcessInputEventArgs.cs
- InsufficientMemoryException.cs
- BufferBuilder.cs
- SEHException.cs
- CorruptingExceptionCommon.cs
- ControlCollection.cs
- SqlCaseSimplifier.cs
- DataTablePropertyDescriptor.cs
- XamlTreeBuilder.cs
- ConnectionStringEditor.cs
- ContentFilePart.cs
- HtmlPageAdapter.cs
- ObjectTag.cs
- initElementDictionary.cs
- TokenizerHelper.cs
- FormViewModeEventArgs.cs
- AssemblyName.cs
- TextParagraphView.cs
- AdPostCacheSubstitution.cs
- Point3D.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- COM2IDispatchConverter.cs
- TraceContext.cs
- SelectedDatesCollection.cs
- Point3DValueSerializer.cs
- ConfigsHelper.cs
- ExpressionReplacer.cs
- DynamicDiscoSearcher.cs
- RegexCode.cs
- HttpContext.cs
- XPathMultyIterator.cs
- GeometryCollection.cs
- Activity.cs
- ArgIterator.cs
- TreeNode.cs
- MatrixAnimationUsingPath.cs
- ZipIOLocalFileDataDescriptor.cs
- TextShapeableCharacters.cs
- Buffer.cs
- ProvidePropertyAttribute.cs
- WebPartManager.cs
- LinkConverter.cs