Code:
/ FX-1434 / FX-1434 / 1.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
- DependencySource.cs
- SiteMapDataSource.cs
- PropertyChangedEventArgs.cs
- RuleSettingsCollection.cs
- Int16AnimationUsingKeyFrames.cs
- IndexedString.cs
- Function.cs
- DependencyProperty.cs
- Emitter.cs
- HandleRef.cs
- TabPage.cs
- AutomationPropertyInfo.cs
- ObjectListCommand.cs
- WindowsRichEditRange.cs
- HttpResponseInternalBase.cs
- DataRowExtensions.cs
- COM2PropertyDescriptor.cs
- CssTextWriter.cs
- TimeManager.cs
- SqlVersion.cs
- Gdiplus.cs
- ExecutedRoutedEventArgs.cs
- ArcSegment.cs
- brushes.cs
- AnimationException.cs
- LinkAreaEditor.cs
- HttpModuleActionCollection.cs
- TextEditorMouse.cs
- OleDbWrapper.cs
- ClientConfigPaths.cs
- ExpressionList.cs
- RelationHandler.cs
- StackBuilderSink.cs
- BinaryUtilClasses.cs
- SafeMILHandle.cs
- DbgCompiler.cs
- SecurityTokenSerializer.cs
- SqlCommandSet.cs
- LineServicesRun.cs
- DataErrorValidationRule.cs
- ColorAnimation.cs
- Stack.cs
- AutomationElementIdentifiers.cs
- WorkflowMessageEventHandler.cs
- CompositeCollection.cs
- PointUtil.cs
- CodeCompiler.cs
- AcceleratedTokenProvider.cs
- WebPartTransformer.cs
- MexHttpBindingCollectionElement.cs
- IODescriptionAttribute.cs
- UrlMappingsModule.cs
- SqlConnectionHelper.cs
- IPAddress.cs
- ComplexLine.cs
- ClonableStack.cs
- Visual.cs
- MouseActionConverter.cs
- ItemContainerGenerator.cs
- LocalizationComments.cs
- Selector.cs
- HttpRequestWrapper.cs
- TypedDataSourceCodeGenerator.cs
- NotCondition.cs
- WebBrowserContainer.cs
- TabItemWrapperAutomationPeer.cs
- PeerInvitationResponse.cs
- StylusCollection.cs
- SpellerStatusTable.cs
- SmiContext.cs
- RequiredFieldValidator.cs
- PackageRelationship.cs
- CookieHandler.cs
- DeclarativeCatalogPartDesigner.cs
- CheckBox.cs
- Bookmark.cs
- DrawListViewSubItemEventArgs.cs
- SelectionRangeConverter.cs
- DataBindingCollection.cs
- ZoneLinkButton.cs
- QuaternionAnimationUsingKeyFrames.cs
- ComponentGlyph.cs
- HuffModule.cs
- ListContractAdapter.cs
- DirectionalLight.cs
- ReadOnlyHierarchicalDataSourceView.cs
- _ConnectionGroup.cs
- StyleCollection.cs
- IsolatedStorageFilePermission.cs
- EntityChangedParams.cs
- DataObjectAttribute.cs
- FieldTemplateUserControl.cs
- BrowserCapabilitiesCompiler.cs
- InputProviderSite.cs
- SecurityDescriptor.cs
- BindingCompleteEventArgs.cs
- XMLSchema.cs
- DataChangedEventManager.cs
- StdValidatorsAndConverters.cs
- SubordinateTransaction.cs