Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Design / MobileUITypeEditor.cs / 1305376 / MobileUITypeEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing.Design; using System.Diagnostics; ////// [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [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.")] internal class MobileUITypeEditor : UITypeEditor { protected ControlDesigner GetDesigner(ITypeDescriptorContext context) { IDesignerHost designerHost = (IDesignerHost)context.GetService(typeof(IDesignerHost)); Debug.Assert(designerHost != null, "Did not get DesignerHost service."); Debug.Assert(context.Instance is Control, "Expected Control"); Control control = (Control)context.Instance; ControlDesigner designer = (ControlDesigner)designerHost.GetDesigner(control); Debug.Assert(designer != null, "Did not get designer for component"); return designer; } ////// The editor for column collections. /// ////// /// /// An/// Gets the edit style. /// ///that specifies the associated context. /// /// /// public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { return UITypeEditorEditStyle.Modal; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// A ///that represents the edit style. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing.Design; using System.Diagnostics; ////// [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [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.")] internal class MobileUITypeEditor : UITypeEditor { protected ControlDesigner GetDesigner(ITypeDescriptorContext context) { IDesignerHost designerHost = (IDesignerHost)context.GetService(typeof(IDesignerHost)); Debug.Assert(designerHost != null, "Did not get DesignerHost service."); Debug.Assert(context.Instance is Control, "Expected Control"); Control control = (Control)context.Instance; ControlDesigner designer = (ControlDesigner)designerHost.GetDesigner(control); Debug.Assert(designer != null, "Did not get designer for component"); return designer; } ////// The editor for column collections. /// ////// /// /// An/// Gets the edit style. /// ///that specifies the associated context. /// /// /// public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { return UITypeEditorEditStyle.Modal; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// A ///that represents the edit style. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DatePickerTextBox.cs
- PropertyGridView.cs
- SecurityContext.cs
- RectKeyFrameCollection.cs
- LongCountAggregationOperator.cs
- Bind.cs
- COM2IDispatchConverter.cs
- SqlDataReaderSmi.cs
- _SSPISessionCache.cs
- Attributes.cs
- SafeProcessHandle.cs
- DocumentScope.cs
- TickBar.cs
- ListViewSelectEventArgs.cs
- EventBuilder.cs
- StreamUpdate.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SystemSounds.cs
- DataPagerFieldCollection.cs
- OnOperation.cs
- OleDbWrapper.cs
- ReadOnlyHierarchicalDataSource.cs
- ListControl.cs
- StreamReader.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataTableTypeConverter.cs
- HealthMonitoringSectionHelper.cs
- TiffBitmapEncoder.cs
- SponsorHelper.cs
- ISFTagAndGuidCache.cs
- SharedDp.cs
- PeerToPeerException.cs
- ContentPlaceHolder.cs
- DebuggerAttributes.cs
- HttpCacheVary.cs
- ThicknessAnimationUsingKeyFrames.cs
- _SslStream.cs
- DiscriminatorMap.cs
- CompilerCollection.cs
- WindowsGrip.cs
- ReturnEventArgs.cs
- SessionIDManager.cs
- Deserializer.cs
- TreeViewItemAutomationPeer.cs
- TransportListener.cs
- XmlReflectionMember.cs
- ETagAttribute.cs
- Command.cs
- SQLUtility.cs
- FormatVersion.cs
- Activity.cs
- XamlSerializer.cs
- RsaSecurityTokenAuthenticator.cs
- HierarchicalDataBoundControlAdapter.cs
- DateTimeOffsetStorage.cs
- BaseCodePageEncoding.cs
- XmlSchemaComplexContentRestriction.cs
- RpcResponse.cs
- localization.cs
- ProcessHost.cs
- HtmlTitle.cs
- Logging.cs
- XmlDataSourceDesigner.cs
- DataPointer.cs
- CroppedBitmap.cs
- RangeValuePatternIdentifiers.cs
- TimeEnumHelper.cs
- CodeNamespaceImportCollection.cs
- DriveInfo.cs
- TextElementEditingBehaviorAttribute.cs
- CodeSubDirectory.cs
- HttpHandlerAction.cs
- ThreadExceptionDialog.cs
- ReferentialConstraint.cs
- SweepDirectionValidation.cs
- CqlWriter.cs
- DataControlField.cs
- EventDescriptor.cs
- DelegateArgumentReference.cs
- DocumentXPathNavigator.cs
- SpeakInfo.cs
- ProfileServiceManager.cs
- ActivityTypeResolver.xaml.cs
- StorageEntityTypeMapping.cs
- ReflectionHelper.cs
- WebFaultClientMessageInspector.cs
- WmpBitmapEncoder.cs
- OleDbPropertySetGuid.cs
- HtmlElement.cs
- Columns.cs
- WorkflowElementDialog.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- WinEventWrap.cs
- Route.cs
- MLangCodePageEncoding.cs
- OracleDataReader.cs
- PerfCounters.cs
- DiscreteKeyFrames.cs
- OutputCacheModule.cs
- KnownBoxes.cs