Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / TreeViewBindingsEditor.cs / 1 / TreeViewBindingsEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing.Design; using System.Web.UI.WebControls; ////// The editor for tree bindings collection in the TreeView. /// public class TreeViewBindingsEditor : 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 TreeView, "Expected System.Web.UI.WebControls.TreeView"); TreeView treeView = (TreeView)context.Instance; TreeViewDesigner designer = (TreeViewDesigner)designerHost.GetDesigner(treeView); Debug.Assert(designer != null, "Didn't get a designer."); designer.InvokeTreeViewBindingsEditor(); 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
- DropShadowBitmapEffect.cs
- SHA1Managed.cs
- SmtpCommands.cs
- returneventsaver.cs
- DefaultObjectMappingItemCollection.cs
- DetailsViewDeletedEventArgs.cs
- LexicalChunk.cs
- ScrollContentPresenter.cs
- CompositeControl.cs
- VBIdentifierNameEditor.cs
- DataExpression.cs
- LookupBindingPropertiesAttribute.cs
- DefaultEvaluationContext.cs
- MsmqProcessProtocolHandler.cs
- PropertyChangedEventArgs.cs
- UniqueEventHelper.cs
- TabControl.cs
- SqlError.cs
- WebPartConnectionsEventArgs.cs
- PackWebRequest.cs
- ThemeDirectoryCompiler.cs
- ArraySegment.cs
- XsltContext.cs
- ValueExpressions.cs
- WebServiceHost.cs
- Bezier.cs
- WebContext.cs
- WsdlHelpGeneratorElement.cs
- HandleExceptionArgs.cs
- DecoderExceptionFallback.cs
- Panel.cs
- ObjectToken.cs
- DataBindingCollection.cs
- OutputScope.cs
- FixedTextContainer.cs
- InternalDuplexChannelListener.cs
- oledbmetadatacollectionnames.cs
- CapiHashAlgorithm.cs
- TextComposition.cs
- ColorTranslator.cs
- FastPropertyAccessor.cs
- UpdateException.cs
- StyleCollection.cs
- EntityWrapper.cs
- _ProxyRegBlob.cs
- BinaryExpression.cs
- TreeViewCancelEvent.cs
- FontEmbeddingManager.cs
- StringSource.cs
- ByteStorage.cs
- HostingPreferredMapPath.cs
- SafeRightsManagementQueryHandle.cs
- BitmapEffectrendercontext.cs
- _StreamFramer.cs
- WebPartConnectionsCancelVerb.cs
- OutOfProcStateClientManager.cs
- UnsafeNativeMethods.cs
- ByteStreamMessageEncodingElement.cs
- HitTestParameters3D.cs
- SqlExpander.cs
- SettingsPropertyWrongTypeException.cs
- RoleExceptions.cs
- ContentTextAutomationPeer.cs
- DrawToolTipEventArgs.cs
- Positioning.cs
- SqlError.cs
- Regex.cs
- NamedPipeTransportSecurityElement.cs
- DataGridViewCellLinkedList.cs
- FileSecurity.cs
- GenericPrincipal.cs
- RestClientProxyHandler.cs
- DataGridViewAccessibleObject.cs
- ReversePositionQuery.cs
- FontStretches.cs
- PositiveTimeSpanValidatorAttribute.cs
- ConstructorBuilder.cs
- DispatcherFrame.cs
- Model3D.cs
- TextServicesHost.cs
- ActivityTypeResolver.xaml.cs
- Vector3D.cs
- ColorTranslator.cs
- GridViewUpdateEventArgs.cs
- OleDbInfoMessageEvent.cs
- TextPenaltyModule.cs
- Semaphore.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- WebPartVerbCollection.cs
- NullableConverter.cs
- BinaryObjectReader.cs
- Environment.cs
- TextCompositionEventArgs.cs
- FloaterBaseParaClient.cs
- CachedFontFace.cs
- ComponentEvent.cs
- _DomainName.cs
- SystemColors.cs
- DelegatedStream.cs
- InfoCardBinaryReader.cs