Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / CollectionEditorDialog.cs / 1 / CollectionEditorDialog.cs
//------------------------------------------------------------------------------ ////// Copyright (c) Microsoft Corporation. All Rights Reserved. /// Information Contained Herein is Proprietary and Confidential. /// //----------------------------------------------------------------------------- using System.Web.UI.Design.Util; using System.Windows.Forms; namespace System.Web.UI.Design.WebControls { // NOTE: For now the sole purpose of this internal class is created for // having a helper method used by both MenuItemCollectionEditorDialog and // TreeNodeCollectionEditorDialog. It can be extended to further refactor // the code between these two classes to avoid duplicate code. internal abstract class CollectionEditorDialog : DesignerForm { protected CollectionEditorDialog(IServiceProvider serviceProvider) : base(serviceProvider) { } // VSWhidbey 504754: Minic the code from WinForms PropertyGrid to set // the properties on the push button accordingly. protected ToolStripButton CreatePushButton(string toolTipText, int imageIndex) { // A note is that we could set the property AccessibleDescription on // the button for accessibility. However, since the string value for // the Text property is already descriptive enough in our current // case, it will be used by the screen reader automatically when // AccessibleDescription is not set. ToolStripButton button = new ToolStripButton(); button.Text = toolTipText; button.AutoToolTip = true; button.DisplayStyle = ToolStripItemDisplayStyle.Image; button.ImageIndex = imageIndex; button.ImageScaling = ToolStripItemImageScaling.SizeToFit; return button; } } } // 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
- IBuiltInEvidence.cs
- XmlQualifiedName.cs
- DoubleConverter.cs
- CodeThrowExceptionStatement.cs
- ISAPIApplicationHost.cs
- QueryConverter.cs
- MatrixCamera.cs
- WsdlBuildProvider.cs
- KeysConverter.cs
- WebPartConnectionsConnectVerb.cs
- ScriptControlManager.cs
- SecurityHeader.cs
- TextEditorCopyPaste.cs
- HttpConfigurationContext.cs
- PasswordTextNavigator.cs
- X509Certificate.cs
- StatusBarDrawItemEvent.cs
- InsufficientMemoryException.cs
- ReachSerializableProperties.cs
- SiteMapHierarchicalDataSourceView.cs
- TraceHandlerErrorFormatter.cs
- CollectionType.cs
- AsymmetricKeyExchangeFormatter.cs
- ListControl.cs
- Registry.cs
- RoleService.cs
- FileFormatException.cs
- brushes.cs
- DateTimeFormatInfo.cs
- ControlType.cs
- DataControlImageButton.cs
- SHA512Managed.cs
- SignedPkcs7.cs
- StatusBarDrawItemEvent.cs
- SqlDataSourceFilteringEventArgs.cs
- DataGridViewUtilities.cs
- SqlCacheDependencyDatabaseCollection.cs
- JsonEncodingStreamWrapper.cs
- DesignTimeParseData.cs
- PointUtil.cs
- XmlIncludeAttribute.cs
- ModuleConfigurationInfo.cs
- Brush.cs
- HttpListenerResponse.cs
- OdbcHandle.cs
- DrawingDrawingContext.cs
- BStrWrapper.cs
- ProfileServiceManager.cs
- JsonDeserializer.cs
- DelegateArgumentValue.cs
- ProgressiveCrcCalculatingStream.cs
- _NegotiateClient.cs
- LinqDataView.cs
- UserNamePasswordValidator.cs
- HttpAsyncResult.cs
- RC2.cs
- PerformanceCounterPermissionAttribute.cs
- IndexExpression.cs
- CompatibleIComparer.cs
- PrintController.cs
- DataReceivedEventArgs.cs
- HelpProvider.cs
- As.cs
- ServiceDescriptionReflector.cs
- ToolTip.cs
- KeyValueInternalCollection.cs
- WebPartEditorCancelVerb.cs
- thaishape.cs
- processwaithandle.cs
- Encoder.cs
- AndCondition.cs
- SelectionRange.cs
- Overlapped.cs
- ZoneLinkButton.cs
- StringReader.cs
- ProcessModuleCollection.cs
- ToolStripPanelRenderEventArgs.cs
- SByteStorage.cs
- ToolboxService.cs
- WebConfigurationFileMap.cs
- QueryableDataSourceView.cs
- CodeAttributeDeclarationCollection.cs
- WebPartManager.cs
- TypedAsyncResult.cs
- LocalizedNameDescriptionPair.cs
- XmlSchemaDatatype.cs
- TableItemPatternIdentifiers.cs
- FileIOPermission.cs
- Decoder.cs
- ReadOnlyCollection.cs
- Operand.cs
- DataControlFieldTypeEditor.cs
- ImageListUtils.cs
- MsmqHostedTransportManager.cs
- WindowsComboBox.cs
- ParameterElement.cs
- SizeAnimationClockResource.cs
- DataMemberFieldEditor.cs
- HtmlShim.cs
- ExternalCalls.cs