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
- RoleServiceManager.cs
- PolicyChain.cs
- SoapCodeExporter.cs
- Serializer.cs
- nulltextnavigator.cs
- HierarchicalDataBoundControl.cs
- IntAverageAggregationOperator.cs
- TypeUsageBuilder.cs
- UnaryOperationBinder.cs
- ByValueEqualityComparer.cs
- SemaphoreFullException.cs
- SingletonChannelAcceptor.cs
- ToolStripStatusLabel.cs
- RemotingServices.cs
- MenuBase.cs
- _ProxyRegBlob.cs
- SchemaCollectionCompiler.cs
- VisualStyleElement.cs
- EventArgs.cs
- PrimitiveOperationFormatter.cs
- CodeArgumentReferenceExpression.cs
- FormsAuthentication.cs
- TableCellsCollectionEditor.cs
- BuildResultCache.cs
- ZipIOLocalFileHeader.cs
- SharedDp.cs
- ConstantExpression.cs
- MetadataItemEmitter.cs
- KeyFrames.cs
- CheckBox.cs
- ComponentEvent.cs
- SmtpNegotiateAuthenticationModule.cs
- SmtpReplyReaderFactory.cs
- LocatorBase.cs
- SessionEndingEventArgs.cs
- OdbcHandle.cs
- XmlSerializationReader.cs
- GlobalProxySelection.cs
- LifetimeServices.cs
- ExceptionNotification.cs
- OdbcEnvironmentHandle.cs
- CommandPlan.cs
- SecuritySessionSecurityTokenProvider.cs
- DesignBindingValueUIHandler.cs
- EventLogReader.cs
- FixedTextSelectionProcessor.cs
- RsaKeyIdentifierClause.cs
- EventHandlersStore.cs
- FieldNameLookup.cs
- SimpleApplicationHost.cs
- DeferredSelectedIndexReference.cs
- PenThread.cs
- DebugInfoGenerator.cs
- MediaContext.cs
- ControlAdapter.cs
- OrderablePartitioner.cs
- XmlRawWriter.cs
- ConnectionConsumerAttribute.cs
- OracleParameterCollection.cs
- BindingManagerDataErrorEventArgs.cs
- ConvertBinder.cs
- BrowserDefinitionCollection.cs
- ThreadExceptionDialog.cs
- XmlValueConverter.cs
- DriveInfo.cs
- Unit.cs
- MimeFormatter.cs
- ToolStripDesignerUtils.cs
- MultiPageTextView.cs
- DotExpr.cs
- OdbcCommand.cs
- WhereQueryOperator.cs
- SessionPageStatePersister.cs
- HostSecurityManager.cs
- IpcServerChannel.cs
- HttpResponseInternalWrapper.cs
- COM2IProvidePropertyBuilderHandler.cs
- PersonalizationDictionary.cs
- TransformValueSerializer.cs
- SqlPersonalizationProvider.cs
- SingleResultAttribute.cs
- TextParagraphProperties.cs
- SHA1CryptoServiceProvider.cs
- ApplicationBuildProvider.cs
- _AutoWebProxyScriptWrapper.cs
- SuspendDesigner.cs
- httpapplicationstate.cs
- Matrix3DConverter.cs
- EFAssociationProvider.cs
- DispatcherHookEventArgs.cs
- SqlErrorCollection.cs
- OrderingQueryOperator.cs
- BookmarkEventArgs.cs
- AbandonedMutexException.cs
- ZipPackagePart.cs
- CssTextWriter.cs
- BitmapMetadataBlob.cs
- InputQueue.cs
- SchemaImporterExtensionElement.cs
- SafeArrayRankMismatchException.cs