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
- SystemInformation.cs
- IChannel.cs
- StringInfo.cs
- NavigatingCancelEventArgs.cs
- Geometry3D.cs
- GenericsInstances.cs
- GeneralTransformGroup.cs
- NavigationFailedEventArgs.cs
- AuthenticationConfig.cs
- ProbeMatchesMessageCD1.cs
- DrawingContext.cs
- SqlVisitor.cs
- ContractMapping.cs
- ProtectedConfigurationSection.cs
- WhitespaceRuleLookup.cs
- DataRelationCollection.cs
- UserPreferenceChangedEventArgs.cs
- EditingScopeUndoUnit.cs
- PeerEndPoint.cs
- ReadOnlyNameValueCollection.cs
- AddInToken.cs
- Clock.cs
- BidOverLoads.cs
- TokenFactoryCredential.cs
- MemoryFailPoint.cs
- TextControl.cs
- UiaCoreApi.cs
- HorizontalAlignConverter.cs
- DataBindingExpressionBuilder.cs
- UndoUnit.cs
- TraceHandler.cs
- DelegateCompletionCallbackWrapper.cs
- TraceProvider.cs
- CompiledRegexRunner.cs
- TypeUtils.cs
- PerformanceCounterCategory.cs
- _CacheStreams.cs
- KeyGestureConverter.cs
- OdbcDataReader.cs
- XmlDigitalSignatureProcessor.cs
- SchemaImporter.cs
- SessionStateSection.cs
- RegexRunner.cs
- FastEncoderWindow.cs
- StateMachineSubscription.cs
- DecimalAnimationUsingKeyFrames.cs
- ExpressionEditorAttribute.cs
- MailFileEditor.cs
- DataPagerFieldCollection.cs
- NotifyInputEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- RepeaterDesigner.cs
- ToolStripContentPanelRenderEventArgs.cs
- XPathAxisIterator.cs
- WebPartHelpVerb.cs
- Splitter.cs
- DrawListViewItemEventArgs.cs
- StateValidator.cs
- XmlText.cs
- DocumentSequenceHighlightLayer.cs
- SafeLibraryHandle.cs
- TableCell.cs
- SerializationException.cs
- BinaryNode.cs
- ClientCultureInfo.cs
- HttpCachePolicyBase.cs
- VariableBinder.cs
- DataTransferEventArgs.cs
- InkCanvasSelectionAdorner.cs
- ScriptBehaviorDescriptor.cs
- ScrollBarAutomationPeer.cs
- TogglePatternIdentifiers.cs
- DataGridItemEventArgs.cs
- ProxyHelper.cs
- NavigationProgressEventArgs.cs
- Selector.cs
- IsolatedStorage.cs
- BitmapImage.cs
- SqlNotificationEventArgs.cs
- SqlResolver.cs
- ObjectHandle.cs
- PageCatalogPartDesigner.cs
- TextTreeTextElementNode.cs
- ProxyWebPart.cs
- BookmarkManager.cs
- ServiceMemoryGates.cs
- WorkflowTimerService.cs
- ServerIdentity.cs
- Stopwatch.cs
- _OSSOCK.cs
- MenuItemBinding.cs
- Delegate.cs
- ObjectDataSource.cs
- ExtendLockAsyncResult.cs
- InputDevice.cs
- NumericPagerField.cs
- GrammarBuilder.cs
- ErrorWebPart.cs
- DataListItemCollection.cs
- BoundsDrawingContextWalker.cs