Code:
/ DotNET / DotNET / 8.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
- PenThread.cs
- DiagnosticsConfiguration.cs
- PreviewPrintController.cs
- HiddenFieldPageStatePersister.cs
- PasswordRecovery.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlSchemaExternal.cs
- TryExpression.cs
- LookupNode.cs
- SqlMethods.cs
- FocusTracker.cs
- Predicate.cs
- GridViewColumn.cs
- GenericEnumConverter.cs
- ArcSegment.cs
- RegexParser.cs
- AuthenticationModuleElementCollection.cs
- TdsRecordBufferSetter.cs
- EntityConnection.cs
- SafeBitVector32.cs
- DocumentPageViewAutomationPeer.cs
- DispatcherEventArgs.cs
- SecondaryViewProvider.cs
- PageAction.cs
- XamlSerializer.cs
- PeerTransportBindingElement.cs
- HybridWebProxyFinder.cs
- ImportCatalogPart.cs
- PropertyTab.cs
- ResXDataNode.cs
- RecognitionEventArgs.cs
- DataControlField.cs
- WindowsAuthenticationEventArgs.cs
- ReadOnlyDictionary.cs
- SqlClientMetaDataCollectionNames.cs
- FormViewInsertedEventArgs.cs
- TextRenderingModeValidation.cs
- Tile.cs
- TextProperties.cs
- DbProviderFactories.cs
- CallbackValidator.cs
- WebBrowsableAttribute.cs
- Substitution.cs
- EntityTransaction.cs
- ConditionalAttribute.cs
- DrawingContextWalker.cs
- MsmqChannelFactory.cs
- NullEntityWrapper.cs
- InternalReceiveMessage.cs
- NamedPermissionSet.cs
- XmlSchemas.cs
- TypedDatasetGenerator.cs
- TimeSpan.cs
- COM2ExtendedTypeConverter.cs
- MachineKeyConverter.cs
- HwndSubclass.cs
- HandoffBehavior.cs
- AssemblyGen.cs
- NonParentingControl.cs
- XmlILAnnotation.cs
- AuthenticationModuleElementCollection.cs
- NodeFunctions.cs
- GatewayDefinition.cs
- ADMembershipUser.cs
- ValueTypeFixupInfo.cs
- TextCharacters.cs
- FederatedMessageSecurityOverHttpElement.cs
- InternalRelationshipCollection.cs
- Soap12ProtocolImporter.cs
- BorderGapMaskConverter.cs
- ObjectStateManagerMetadata.cs
- DataGrid.cs
- BitmapEffectInputConnector.cs
- UnsafeNetInfoNativeMethods.cs
- ExpressionBindings.cs
- StateDesignerConnector.cs
- UserControl.cs
- TextBoxRenderer.cs
- NativeCppClassAttribute.cs
- ProcessModule.cs
- HttpUnhandledOperationInvoker.cs
- PeerNeighborManager.cs
- XslTransformFileEditor.cs
- ExtensionSurface.cs
- HtmlButton.cs
- NativeWindow.cs
- RelationshipManager.cs
- TextBoxBase.cs
- DbParameterCollection.cs
- EncryptedKeyIdentifierClause.cs
- ThreadStartException.cs
- PeerPresenceInfo.cs
- StateManagedCollection.cs
- ViewLoader.cs
- ImagingCache.cs
- FileDialogCustomPlacesCollection.cs
- ConfigurationSettings.cs
- DirectionalLight.cs
- CollectionBuilder.cs
- ObjectParameterCollection.cs