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
- FileChangesMonitor.cs
- HtmlEmptyTagControlBuilder.cs
- TextContainer.cs
- Parser.cs
- ViewCellRelation.cs
- Helper.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- OdbcStatementHandle.cs
- GorillaCodec.cs
- ClientEventManager.cs
- HostProtectionPermission.cs
- GeneratedView.cs
- TablePatternIdentifiers.cs
- WebResourceAttribute.cs
- XmlDataSource.cs
- QueuePropertyVariants.cs
- IPEndPointCollection.cs
- DeviceSpecificDesigner.cs
- Separator.cs
- FieldInfo.cs
- NetTcpSecurityElement.cs
- TiffBitmapEncoder.cs
- TriggerAction.cs
- QuerySettings.cs
- Tool.cs
- WebPartConnectionsDisconnectVerb.cs
- _ConnectOverlappedAsyncResult.cs
- Action.cs
- XPathNavigator.cs
- SafeFileMappingHandle.cs
- MatrixIndependentAnimationStorage.cs
- NativeObjectSecurity.cs
- ControlBuilder.cs
- RandomNumberGenerator.cs
- FacetValueContainer.cs
- HostingEnvironment.cs
- TemplateInstanceAttribute.cs
- EditBehavior.cs
- DataKeyCollection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SQLInt32.cs
- ObjectStateManagerMetadata.cs
- GestureRecognizer.cs
- ConditionCollection.cs
- PolyBezierSegment.cs
- PrintEvent.cs
- SocketAddress.cs
- ISO2022Encoding.cs
- StrongName.cs
- SqlMethodAttribute.cs
- PointKeyFrameCollection.cs
- OracleException.cs
- Schema.cs
- OutputCacheProfile.cs
- CatalogPart.cs
- HotSpotCollectionEditor.cs
- _AutoWebProxyScriptWrapper.cs
- XhtmlBasicPanelAdapter.cs
- DbCommandTree.cs
- TaskFileService.cs
- path.cs
- SystemWebExtensionsSectionGroup.cs
- WebPartUserCapability.cs
- EventLogger.cs
- SymmetricSecurityProtocolFactory.cs
- TextStore.cs
- Funcletizer.cs
- TaiwanLunisolarCalendar.cs
- TagNameToTypeMapper.cs
- EnumValAlphaComparer.cs
- OrthographicCamera.cs
- DataSourceCache.cs
- _ListenerRequestStream.cs
- WebPartTransformer.cs
- mediapermission.cs
- WindowsTooltip.cs
- XmlTextReaderImplHelpers.cs
- HttpsHostedTransportConfiguration.cs
- SqlDataSourceCustomCommandPanel.cs
- GestureRecognizer.cs
- XmlSiteMapProvider.cs
- ResourcePermissionBase.cs
- MdbDataFileEditor.cs
- DrawListViewColumnHeaderEventArgs.cs
- BaseDataBoundControlDesigner.cs
- AutomationEventArgs.cs
- GenericUI.cs
- LinkLabelLinkClickedEvent.cs
- DataKeyCollection.cs
- ObjectItemNoOpAssemblyLoader.cs
- CombinedGeometry.cs
- GroupDescription.cs
- ColorInterpolationModeValidation.cs
- PenContexts.cs
- WebException.cs
- SessionStateSection.cs
- VisualCollection.cs
- ManagementPath.cs
- WebPartTracker.cs
- FormClosedEvent.cs