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
- PreloadedPackages.cs
- ErrorTableItemStyle.cs
- AnimationStorage.cs
- WriteableBitmap.cs
- WebPartConnectionsCancelEventArgs.cs
- SQLInt32Storage.cs
- CustomErrorsSection.cs
- ModelItemDictionaryImpl.cs
- DesignerListAdapter.cs
- GroupBox.cs
- ListViewUpdateEventArgs.cs
- FieldInfo.cs
- DoubleMinMaxAggregationOperator.cs
- followingsibling.cs
- ProtocolsConfiguration.cs
- TraceInternal.cs
- ContentFilePart.cs
- TableRowsCollectionEditor.cs
- Label.cs
- DbProviderFactory.cs
- GeneralTransformGroup.cs
- GregorianCalendarHelper.cs
- FlowDocumentReader.cs
- PrimaryKeyTypeConverter.cs
- BufferedStream.cs
- RtfNavigator.cs
- ProfilePropertySettingsCollection.cs
- InkCollectionBehavior.cs
- CompoundFileStreamReference.cs
- ParentUndoUnit.cs
- LoginName.cs
- UnsafeNativeMethodsTablet.cs
- XsltSettings.cs
- XmlWriterDelegator.cs
- Style.cs
- DataSetViewSchema.cs
- HeaderedContentControl.cs
- ValueUtilsSmi.cs
- XmlSchemaComplexType.cs
- XmlSchemaDatatype.cs
- SrgsRule.cs
- XPathEmptyIterator.cs
- CredentialManagerDialog.cs
- Pair.cs
- SupportingTokenChannel.cs
- TableLayoutPanelCodeDomSerializer.cs
- _HelperAsyncResults.cs
- BitmapEffectCollection.cs
- QueuePathDialog.cs
- ListViewAutomationPeer.cs
- Registry.cs
- DNS.cs
- DrawListViewColumnHeaderEventArgs.cs
- LocalizedNameDescriptionPair.cs
- ThreadStateException.cs
- DataGridViewCell.cs
- ConfigurationElement.cs
- HMACSHA512.cs
- SqlInternalConnectionSmi.cs
- ECDiffieHellman.cs
- FixedMaxHeap.cs
- ExtensionSimplifierMarkupObject.cs
- PageEventArgs.cs
- FrameworkRichTextComposition.cs
- SchemaImporterExtension.cs
- CircleEase.cs
- HighlightComponent.cs
- VirtualizedContainerService.cs
- ImageMetadata.cs
- SortFieldComparer.cs
- FuncCompletionCallbackWrapper.cs
- OleDbParameterCollection.cs
- DataMisalignedException.cs
- ThreadSafeList.cs
- ISAPIRuntime.cs
- AsymmetricSignatureFormatter.cs
- XamlInt32CollectionSerializer.cs
- SerialPort.cs
- TextElementEditingBehaviorAttribute.cs
- COM2EnumConverter.cs
- RangeValidator.cs
- OrthographicCamera.cs
- PerformanceCounter.cs
- TableProviderWrapper.cs
- PointCollectionConverter.cs
- streamingZipPartStream.cs
- CustomWebEventKey.cs
- PopupEventArgs.cs
- DataServiceRequestException.cs
- WinFormsSecurity.cs
- ValidationSummary.cs
- QilList.cs
- ArithmeticException.cs
- GlyphInfoList.cs
- LineServicesRun.cs
- NonClientArea.cs
- BindingCollection.cs
- ToolStripItem.cs
- Ticks.cs
- ColorInterpolationModeValidation.cs