Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / TreeNodeCollectionEditor.cs / 1 / TreeNodeCollectionEditor.cs
//------------------------------------------------------------------------------ ////// Copyright (c) Microsoft Corporation. All Rights Reserved. /// Information Contained Herein is Proprietary and Confidential. /// //----------------------------------------------------------------------------- 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.Runtime.InteropServices; using System.Web.UI.Design.Util; using System.Web.UI.WebControls; using System.Windows.Forms; using System.Windows.Forms.Design; using WebTreeNode = System.Web.UI.WebControls.TreeNode; using WebTreeNodeCollection = System.Web.UI.WebControls.TreeNodeCollection; using WebTreeView = System.Web.UI.WebControls.TreeView; ////// /// The editor for tree nodes collection in the TreeView. /// public class TreeNodeCollectionEditor : 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 WebTreeView, "Expected System.Web.UI.WebControls.TreeView"); WebTreeView treeView = (WebTreeView)context.Instance; TreeViewDesigner designer = (TreeViewDesigner)designerHost.GetDesigner(treeView); Debug.Assert(designer != null, "Didn't get a designer."); designer.InvokeTreeNodeCollectionEditor(); 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
- CallbackException.cs
- StyleXamlParser.cs
- Selection.cs
- PrintDialogException.cs
- TcpSocketManager.cs
- SqlClientPermission.cs
- LambdaCompiler.cs
- MenuEventArgs.cs
- OutputChannel.cs
- EnumType.cs
- RoutedEventConverter.cs
- FixedNode.cs
- MulticastNotSupportedException.cs
- EdmItemError.cs
- MemoryStream.cs
- EntitySqlQueryCacheKey.cs
- CheckBoxBaseAdapter.cs
- HttpListener.cs
- XMLSchema.cs
- ResolveMatchesMessageCD1.cs
- PlatformCulture.cs
- ObjectSecurity.cs
- DependsOnAttribute.cs
- SafeNativeMethods.cs
- Image.cs
- BindingList.cs
- LinkDescriptor.cs
- ClientTarget.cs
- BaseCodePageEncoding.cs
- FileVersion.cs
- CompositeKey.cs
- SerializationUtilities.cs
- DbParameterCollection.cs
- ConfigPathUtility.cs
- CheckBoxAutomationPeer.cs
- ResourcePermissionBaseEntry.cs
- ResourceExpression.cs
- ContentType.cs
- LinkedResourceCollection.cs
- DesignSurfaceCollection.cs
- PersistenceTypeAttribute.cs
- WindowsAltTab.cs
- MachineKeySection.cs
- Compilation.cs
- LingerOption.cs
- Utils.cs
- HtmlControl.cs
- Closure.cs
- FigureParaClient.cs
- RtfToken.cs
- GatewayIPAddressInformationCollection.cs
- Rule.cs
- AccessViolationException.cs
- TextTreeRootNode.cs
- XmlSchemaAnnotation.cs
- SiteMapPath.cs
- LayoutInformation.cs
- FrugalMap.cs
- ProxyWebPartManager.cs
- DynamicVirtualDiscoSearcher.cs
- SchemaMerger.cs
- Int32Rect.cs
- MissingMethodException.cs
- RuntimeWrappedException.cs
- HyperLinkDesigner.cs
- DynamicDocumentPaginator.cs
- GridErrorDlg.cs
- OleDbCommandBuilder.cs
- PolyQuadraticBezierSegment.cs
- CompilerLocalReference.cs
- FontInfo.cs
- JavaScriptString.cs
- JournalEntry.cs
- GeneralTransform3DCollection.cs
- mactripleDES.cs
- BinaryFormatterWriter.cs
- DataProtection.cs
- StickyNoteAnnotations.cs
- DataTemplateKey.cs
- FacetChecker.cs
- XmlWrappingReader.cs
- WebPartVerb.cs
- ImageCodecInfo.cs
- TypeToken.cs
- TextSerializer.cs
- _UriSyntax.cs
- ValidationSummary.cs
- DataServiceResponse.cs
- BinaryObjectReader.cs
- WSSecurityTokenSerializer.cs
- DataServiceCollectionOfT.cs
- ExpressionParser.cs
- TypedMessageConverter.cs
- CompositeControl.cs
- Config.cs
- Simplifier.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- ExceptionHelpers.cs
- XmlAnyElementAttributes.cs
- COM2IManagedPerPropertyBrowsingHandler.cs