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
- UpDownEvent.cs
- _Events.cs
- ServiceProviders.cs
- ReflectionHelper.cs
- RunWorkerCompletedEventArgs.cs
- cookieexception.cs
- SymbolEqualComparer.cs
- AuthorizationRuleCollection.cs
- OrderingInfo.cs
- QueryCacheEntry.cs
- ParentControlDesigner.cs
- ThrowHelper.cs
- VScrollProperties.cs
- MimeParameters.cs
- CodeChecksumPragma.cs
- ComponentManagerBroker.cs
- ApplicationManager.cs
- Rectangle.cs
- TrayIconDesigner.cs
- ThreadStateException.cs
- ReferencedType.cs
- NamedPipeAppDomainProtocolHandler.cs
- UriPrefixTable.cs
- SqlPersonalizationProvider.cs
- RealizationContext.cs
- DataView.cs
- XmlSchemaElement.cs
- TcpConnectionPoolSettings.cs
- SuppressIldasmAttribute.cs
- ParallelTimeline.cs
- TimersDescriptionAttribute.cs
- ShaderRenderModeValidation.cs
- BindToObject.cs
- MbpInfo.cs
- DesignTimeVisibleAttribute.cs
- WsdlBuildProvider.cs
- Visual3DCollection.cs
- SoapEnumAttribute.cs
- Bold.cs
- ReliabilityContractAttribute.cs
- WebServiceMethodData.cs
- PropertyEmitterBase.cs
- AssemblyBuilderData.cs
- PasswordBoxAutomationPeer.cs
- SafeCryptContextHandle.cs
- GreenMethods.cs
- BoundingRectTracker.cs
- AssemblyAttributesGoHere.cs
- SizeFConverter.cs
- WebMessageEncoderFactory.cs
- SetterTriggerConditionValueConverter.cs
- AnimatedTypeHelpers.cs
- TrustManagerMoreInformation.cs
- HitTestFilterBehavior.cs
- MatrixTransform.cs
- ReferentialConstraint.cs
- MulticastOption.cs
- AddInControllerImpl.cs
- NetworkAddressChange.cs
- CalendarDayButton.cs
- ScalarConstant.cs
- TextEvent.cs
- ValidatorCollection.cs
- shaper.cs
- ArrayExtension.cs
- SamlAttributeStatement.cs
- SqlReferenceCollection.cs
- EncoderParameter.cs
- AutomationPeer.cs
- XhtmlBasicFormAdapter.cs
- ApplicationDirectory.cs
- XPathArrayIterator.cs
- SpellCheck.cs
- GenericIdentity.cs
- Floater.cs
- ArrayTypeMismatchException.cs
- CollectionType.cs
- DeferredReference.cs
- Trace.cs
- Int64Storage.cs
- Pool.cs
- RecommendedAsConfigurableAttribute.cs
- AssemblyInfo.cs
- NeutralResourcesLanguageAttribute.cs
- ImmutableAssemblyCacheEntry.cs
- SystemResources.cs
- HMACSHA1.cs
- ContractMapping.cs
- TokenCreationException.cs
- RichTextBox.cs
- XamlSerializerUtil.cs
- _ConnectionGroup.cs
- CommandConverter.cs
- CanonicalizationDriver.cs
- Vector3DValueSerializer.cs
- TemplateField.cs
- TextEndOfSegment.cs
- TreeNodeCollection.cs
- RequestTimeoutManager.cs
- ModelItemCollection.cs