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
- DateTimePicker.cs
- IIS7UserPrincipal.cs
- Variable.cs
- BaseTemplatedMobileComponentEditor.cs
- ThicknessKeyFrameCollection.cs
- TreeViewCancelEvent.cs
- Mutex.cs
- ErrorReporting.cs
- SqlNotificationEventArgs.cs
- GregorianCalendarHelper.cs
- IOException.cs
- TreeNodeBinding.cs
- Win32Exception.cs
- XmlSchemaAttributeGroupRef.cs
- ConditionChanges.cs
- LineMetrics.cs
- VirtualPathUtility.cs
- WebPartPersonalization.cs
- XmlSchemaObjectCollection.cs
- AttributeCollection.cs
- WriterOutput.cs
- XmlWhitespace.cs
- CryptographicAttribute.cs
- HttpServerChannel.cs
- DictionaryMarkupSerializer.cs
- DockProviderWrapper.cs
- ListViewDesigner.cs
- CacheDependency.cs
- MissingMemberException.cs
- TickBar.cs
- WebBaseEventKeyComparer.cs
- XNodeNavigator.cs
- TagPrefixCollection.cs
- SharedPersonalizationStateInfo.cs
- RectangleConverter.cs
- ConfigurationElementProperty.cs
- Propagator.JoinPropagator.cs
- ListViewEditEventArgs.cs
- Assembly.cs
- GroupItem.cs
- Console.cs
- QueryableDataSourceEditData.cs
- RuntimeHelpers.cs
- XmlSchemaSimpleTypeUnion.cs
- FixedSOMTableRow.cs
- SecurityPermission.cs
- AlternationConverter.cs
- HtmlInputSubmit.cs
- VisualStyleTypesAndProperties.cs
- ToolStripStatusLabel.cs
- ModuleConfigurationInfo.cs
- UnaryExpression.cs
- ClientConfigurationHost.cs
- CryptoStream.cs
- EdmFunctions.cs
- UIElementIsland.cs
- cookie.cs
- ProgressPage.cs
- Expr.cs
- OverloadGroupAttribute.cs
- MenuStrip.cs
- LabelDesigner.cs
- MouseActionValueSerializer.cs
- CodeGotoStatement.cs
- LicenseProviderAttribute.cs
- SetStateDesigner.cs
- PolyLineSegmentFigureLogic.cs
- DrawToolTipEventArgs.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- AssemblyCache.cs
- ModelVisual3D.cs
- NameTable.cs
- DataGridViewCheckBoxCell.cs
- SignerInfo.cs
- RightsManagementPermission.cs
- MenuItem.cs
- DocumentOrderQuery.cs
- X509Certificate2.cs
- ModuleBuilderData.cs
- Matrix3D.cs
- WebPartActionVerb.cs
- RelationshipConverter.cs
- ServiceContractGenerationContext.cs
- Calendar.cs
- PathFigureCollection.cs
- BitmapFrameDecode.cs
- SqlCacheDependencyDatabase.cs
- TableCell.cs
- XmlQueryCardinality.cs
- ObjectParameter.cs
- ImageDrawing.cs
- followingquery.cs
- PropertyInfoSet.cs
- BitmapEffect.cs
- FileDialogPermission.cs
- MetadataArtifactLoaderFile.cs
- BindingBase.cs
- ChildDocumentBlock.cs
- ChannelManager.cs
- DotExpr.cs