Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Design / CommandCollectionEditor.cs / 1305376 / CommandCollectionEditor.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.Diagnostics; using System.Drawing.Design; using System.Web.UI.WebControls; using System.Runtime.Serialization.Formatters; using ObjectList = System.Web.UI.MobileControls.ObjectList; ////// [ 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 CommandCollectionEditor : UITypeEditor { ////// The editor for column collections. /// ////// /// /// An/// Edits the value specified. /// ///that specifies the context of the value to edit. /// /// /// An . /// /// /// The object to edit. /// /// /// public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) { IDesignerHost designerHost = (IDesignerHost)context.GetService(typeof(IDesignerHost)); Debug.Assert(designerHost != null, "Did not get DesignerHost service."); Debug.Assert(context.Instance is ObjectList, "Expected objectlist"); ObjectList _objectList = (ObjectList)context.Instance; ObjectListDesigner _designer = (ObjectListDesigner)designerHost.GetDesigner(_objectList); Debug.Assert(_designer != null, "Did not get designer for component"); _designer.InvokePropertyBuilder(ObjectListComponentEditor.IDX_COMMANDS); return value; } ////// The updated value. /// ////// /// /// 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExeContext.cs
- Point3DAnimationUsingKeyFrames.cs
- ToolStripDropDownItem.cs
- Pts.cs
- Vector3D.cs
- FixedStringLookup.cs
- XmlSerializableWriter.cs
- ObjectNotFoundException.cs
- EntityDescriptor.cs
- NameTable.cs
- SafeLocalAllocation.cs
- OutputScope.cs
- MailDefinition.cs
- LineGeometry.cs
- DataGridViewRowPostPaintEventArgs.cs
- LinkedDataMemberFieldEditor.cs
- ClipboardData.cs
- ListGeneralPage.cs
- AuthorizationSection.cs
- GradientStop.cs
- ContractReference.cs
- MaskInputRejectedEventArgs.cs
- NoneExcludedImageIndexConverter.cs
- MarkupCompiler.cs
- ConfigsHelper.cs
- StatusBarPanel.cs
- PriorityItem.cs
- SimpleHandlerFactory.cs
- DeflateStreamAsyncResult.cs
- DbProviderFactory.cs
- ArithmeticException.cs
- ColorAnimation.cs
- ValueTable.cs
- XamlGridLengthSerializer.cs
- XmlTextEncoder.cs
- EdmTypeAttribute.cs
- SqlRewriteScalarSubqueries.cs
- Content.cs
- RegexRunnerFactory.cs
- GridViewActionList.cs
- ControlCachePolicy.cs
- PresentationTraceSources.cs
- ScopeCompiler.cs
- LineSegment.cs
- ISAPIApplicationHost.cs
- HtmlEncodedRawTextWriter.cs
- figurelength.cs
- TextEncodedRawTextWriter.cs
- HandleCollector.cs
- ProcessThreadCollection.cs
- RootBrowserWindowAutomationPeer.cs
- MethodExpr.cs
- AnimatedTypeHelpers.cs
- ListViewItem.cs
- XmlCharacterData.cs
- ColorMap.cs
- TextTreeUndo.cs
- TreeNodeMouseHoverEvent.cs
- HttpCookieCollection.cs
- ThreadAbortException.cs
- SafeFindHandle.cs
- IntegrationExceptionEventArgs.cs
- Exceptions.cs
- Schema.cs
- UserControlAutomationPeer.cs
- GlobalizationAssembly.cs
- ObjectDataSourceStatusEventArgs.cs
- _FtpControlStream.cs
- SafeFindHandle.cs
- SystemUnicastIPAddressInformation.cs
- HandoffBehavior.cs
- DateTimeFormat.cs
- EncryptedType.cs
- ProjectionCamera.cs
- GroupBoxRenderer.cs
- XmlWriterTraceListener.cs
- ObjectMemberMapping.cs
- CapabilitiesUse.cs
- ToolboxDataAttribute.cs
- MailWriter.cs
- DesignerTextBoxAdapter.cs
- webproxy.cs
- ImpersonationContext.cs
- HideDisabledControlAdapter.cs
- SqlClientWrapperSmiStream.cs
- CodeExporter.cs
- XmlSerializerFactory.cs
- TripleDESCryptoServiceProvider.cs
- CustomAttribute.cs
- TransformerConfigurationWizardBase.cs
- ISAPIApplicationHost.cs
- DetailsViewDeletedEventArgs.cs
- DesignConnection.cs
- TextStore.cs
- X509CertificateRecipientClientCredential.cs
- InkCollectionBehavior.cs
- SystemResourceHost.cs
- ServiceOperationParameter.cs
- WmlLiteralTextAdapter.cs
- SQLStringStorage.cs