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
- DataGridViewBand.cs
- ByteBufferPool.cs
- ConfigXmlComment.cs
- DataBinder.cs
- AssertFilter.cs
- GridViewDeleteEventArgs.cs
- DataBindingHandlerAttribute.cs
- ObjectAnimationBase.cs
- ListMarkerSourceInfo.cs
- LightweightCodeGenerator.cs
- StylusShape.cs
- TextRangeEditLists.cs
- TableLayoutRowStyleCollection.cs
- BooleanToVisibilityConverter.cs
- DataColumnMapping.cs
- ListBoxItem.cs
- coordinatorscratchpad.cs
- TracingConnectionListener.cs
- EarlyBoundInfo.cs
- _ListenerResponseStream.cs
- NamespaceCollection.cs
- ClientScriptManagerWrapper.cs
- DefaultSerializationProviderAttribute.cs
- InstancePersistenceEvent.cs
- Focus.cs
- DbDeleteCommandTree.cs
- RoleManagerSection.cs
- XmlSubtreeReader.cs
- EmptyEnumerable.cs
- WindowsSecurityTokenAuthenticator.cs
- ObsoleteAttribute.cs
- BitmapEffectRenderDataResource.cs
- ListBoxAutomationPeer.cs
- InvokeHandlers.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- BitmapFrameEncode.cs
- DesignerActionUI.cs
- StdValidatorsAndConverters.cs
- DayRenderEvent.cs
- HtmlElementCollection.cs
- ReceiveActivityDesigner.cs
- DataGridHelper.cs
- GridViewSortEventArgs.cs
- CatalogZoneBase.cs
- TreePrinter.cs
- AssociationSetMetadata.cs
- VisualStyleElement.cs
- NumberAction.cs
- AutomationAttributeInfo.cs
- TableItemPatternIdentifiers.cs
- SqlCharStream.cs
- HyperlinkAutomationPeer.cs
- BackEase.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- X509InitiatorCertificateClientElement.cs
- SqlDataSource.cs
- UserControlParser.cs
- EditorAttributeInfo.cs
- RuntimeTransactionHandle.cs
- Model3D.cs
- MailAddress.cs
- QilVisitor.cs
- CommonGetThemePartSize.cs
- AssemblyFilter.cs
- ObjectDataProvider.cs
- ping.cs
- InfoCardClaimCollection.cs
- KnownTypeDataContractResolver.cs
- RadioButton.cs
- FileLevelControlBuilderAttribute.cs
- AssociationTypeEmitter.cs
- FloatSumAggregationOperator.cs
- OutputCacheProfile.cs
- TraceXPathNavigator.cs
- MatrixStack.cs
- OleDbRowUpdatedEvent.cs
- Memoizer.cs
- QilInvoke.cs
- ToolStripSeparator.cs
- SoapIncludeAttribute.cs
- TemplatePropertyEntry.cs
- ExtensibleClassFactory.cs
- BindableTemplateBuilder.cs
- CancellationHandler.cs
- TextBoxView.cs
- ExtensionElementCollection.cs
- ButtonFlatAdapter.cs
- CalculatedColumn.cs
- PathSegment.cs
- NetCodeGroup.cs
- ElementsClipboardData.cs
- TransformerConfigurationWizardBase.cs
- BaseCollection.cs
- TableLayoutStyle.cs
- DbConvert.cs
- StylusSystemGestureEventArgs.cs
- TextRunProperties.cs
- ConstNode.cs
- WebConfigurationManager.cs
- StickyNoteAnnotations.cs