Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / MenuBindingsEditor.cs / 1 / MenuBindingsEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Globalization; using System.Web.UI.Design; using System.Web.UI.Design.Util; using System.Windows.Forms; using MenuItemBinding = System.Web.UI.WebControls.MenuItemBinding; using WebTreeNodeCollection = System.Web.UI.WebControls.TreeNodeCollection; using WebMenu = System.Web.UI.WebControls.Menu; public class MenuBindingsEditor : UITypeEditor { public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { IDesignerHost designerHost = (IDesignerHost)context.GetService(typeof(IDesignerHost)); Debug.Assert(designerHost != null, "Didn't get a DesignerHost."); Debug.Assert(context.Instance is WebMenu, "Expected System.Web.UI.WebControls.Menu"); WebMenu menu = (WebMenu)context.Instance; MenuDesigner designer = (MenuDesigner)designerHost.GetDesigner(menu); Debug.Assert(designer != null, "Didn't get a designer."); designer.InvokeMenuBindingsEditor(); return value; } public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { return UITypeEditorEditStyle.Modal; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlEventCache.cs
- WebBaseEventKeyComparer.cs
- UIElement.cs
- ControlBuilderAttribute.cs
- RootAction.cs
- ActivitiesCollection.cs
- AddInEnvironment.cs
- IconConverter.cs
- Mutex.cs
- DataGridItemEventArgs.cs
- XmlSerializableWriter.cs
- ListViewUpdatedEventArgs.cs
- PackageController.cs
- XmlStringTable.cs
- Completion.cs
- EntityClientCacheKey.cs
- FunctionImportElement.cs
- CharKeyFrameCollection.cs
- EncoderNLS.cs
- ChannelPoolSettings.cs
- Int32Rect.cs
- WorkflowRuntimeEndpoint.cs
- UseLicense.cs
- GridLengthConverter.cs
- SpellerHighlightLayer.cs
- MenuItemStyle.cs
- DataGridViewRow.cs
- WebPartCloseVerb.cs
- XmlILStorageConverter.cs
- SafeSerializationManager.cs
- Calendar.cs
- LinqDataSourceHelper.cs
- DeferredSelectedIndexReference.cs
- CodeEntryPointMethod.cs
- XmlQueryContext.cs
- StringUtil.cs
- ColorComboBox.cs
- mediaeventshelper.cs
- StreamGeometry.cs
- Exceptions.cs
- ObfuscateAssemblyAttribute.cs
- WebPartDescriptionCollection.cs
- ToolBar.cs
- BindingExpressionUncommonField.cs
- InputScopeNameConverter.cs
- SurrogateEncoder.cs
- UserMapPath.cs
- SecurityResources.cs
- XPathItem.cs
- ExpressionBuilderContext.cs
- Point3DAnimationBase.cs
- OracleTransaction.cs
- WebEventCodes.cs
- NCryptNative.cs
- FacetValues.cs
- XmlBinaryReader.cs
- WebPartEditVerb.cs
- TypeConverterHelper.cs
- CodeChecksumPragma.cs
- ImageCollectionEditor.cs
- MemberInitExpression.cs
- SortQuery.cs
- InstanceDescriptor.cs
- IdentityValidationException.cs
- Certificate.cs
- ArgIterator.cs
- DictionaryGlobals.cs
- EpmContentSerializer.cs
- EndpointIdentity.cs
- EventLogHandle.cs
- FixedSOMLineRanges.cs
- HttpHandlersSection.cs
- UnorderedHashRepartitionStream.cs
- CustomAttributeFormatException.cs
- UInt64Converter.cs
- MatrixIndependentAnimationStorage.cs
- XmlNodeList.cs
- wgx_render.cs
- OperationBehaviorAttribute.cs
- ComplexType.cs
- XmlToDatasetMap.cs
- CurrencyManager.cs
- CommunicationObjectAbortedException.cs
- ViewCellRelation.cs
- TextBox.cs
- ClusterUtils.cs
- GeneralTransform.cs
- StylusButtonEventArgs.cs
- DateBoldEvent.cs
- _HelperAsyncResults.cs
- ToolStripManager.cs
- Region.cs
- StyleBamlRecordReader.cs
- BindingMAnagerBase.cs
- DataRow.cs
- ITextView.cs
- StateManagedCollection.cs
- DataGridViewElement.cs
- ProfilePropertyMetadata.cs
- MaterialGroup.cs