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
- FormatSettings.cs
- IndexedEnumerable.cs
- UriTemplateClientFormatter.cs
- ContainerUIElement3D.cs
- EntityDataSourceChangingEventArgs.cs
- XmlReaderSettings.cs
- HtmlSelect.cs
- ErrorWebPart.cs
- MessageSmuggler.cs
- Symbol.cs
- FrameworkElementFactory.cs
- DynamicUpdateCommand.cs
- PropertyPushdownHelper.cs
- NetDispatcherFaultException.cs
- InvalidFilterCriteriaException.cs
- OdbcConnection.cs
- Stroke.cs
- DesignerAutoFormat.cs
- CancellationTokenSource.cs
- BaseTemplateParser.cs
- ItemCollection.cs
- PropertyCollection.cs
- ByteRangeDownloader.cs
- CapabilitiesUse.cs
- UrlAuthFailureHandler.cs
- nulltextnavigator.cs
- ContentHostHelper.cs
- PerformanceCounterCategory.cs
- SecurityElement.cs
- WizardSideBarListControlItem.cs
- Brush.cs
- xsdvalidator.cs
- ProfileGroupSettings.cs
- SchemaCollectionCompiler.cs
- TabOrder.cs
- PhoneCallDesigner.cs
- LZCodec.cs
- WebEncodingValidatorAttribute.cs
- DetailsView.cs
- ControlDesigner.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- CatalogZoneBase.cs
- AsyncOperationManager.cs
- TabControl.cs
- TextBox.cs
- ViewBox.cs
- TraceFilter.cs
- DockAndAnchorLayout.cs
- DurationConverter.cs
- DynamicRendererThreadManager.cs
- MemberRelationshipService.cs
- ListBox.cs
- TableHeaderCell.cs
- XamlInt32CollectionSerializer.cs
- WebPartCatalogCloseVerb.cs
- OperationCanceledException.cs
- ButtonColumn.cs
- StreamedFramingRequestChannel.cs
- TagPrefixCollection.cs
- StaticExtensionConverter.cs
- PointConverter.cs
- Stack.cs
- AsyncOperationManager.cs
- DictionaryBase.cs
- HtmlAnchor.cs
- MailDefinition.cs
- CancellationHandlerDesigner.cs
- FormsAuthenticationUser.cs
- XmlTextWriter.cs
- DataServiceBehavior.cs
- CleanUpVirtualizedItemEventArgs.cs
- dataobject.cs
- _SSPIWrapper.cs
- TextPattern.cs
- UnsafeNativeMethods.cs
- HtmlHead.cs
- RecipientIdentity.cs
- FixedSOMContainer.cs
- RoleManagerSection.cs
- SqlDataReader.cs
- LayoutEngine.cs
- PreProcessor.cs
- LoopExpression.cs
- X509CertificateStore.cs
- SynthesizerStateChangedEventArgs.cs
- CodeIdentifiers.cs
- PerformanceCounterManager.cs
- RouteTable.cs
- XmlAttributeCache.cs
- RenderContext.cs
- SqlDataSource.cs
- ColumnMapTranslator.cs
- ContextMenuService.cs
- ActivationWorker.cs
- DynamicDataExtensions.cs
- TypeUnloadedException.cs
- IconConverter.cs
- GlyphingCache.cs
- BindValidator.cs
- WebHostedComPlusServiceHost.cs