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
- ActiveXHelper.cs
- ResourcePermissionBaseEntry.cs
- _SslStream.cs
- HTMLTextWriter.cs
- RSAPKCS1SignatureDeformatter.cs
- ImmutableObjectAttribute.cs
- WorkflowDebuggerSteppingAttribute.cs
- SetterBase.cs
- MetabaseServerConfig.cs
- UnSafeCharBuffer.cs
- TransactionContextValidator.cs
- AddInEnvironment.cs
- InvalidCommandTreeException.cs
- CallbackValidator.cs
- UInt32.cs
- MetafileHeaderWmf.cs
- HwndHostAutomationPeer.cs
- HMACMD5.cs
- FigureParagraph.cs
- VarRefManager.cs
- PrintDialog.cs
- BinaryObjectWriter.cs
- RowCache.cs
- WindowsAltTab.cs
- InvalidOleVariantTypeException.cs
- XmlQualifiedName.cs
- FontDialog.cs
- SchemaCreator.cs
- SqlFlattener.cs
- RoutedEvent.cs
- EventProviderClassic.cs
- DataBoundControlAdapter.cs
- CultureSpecificStringDictionary.cs
- EntityDataSourceReferenceGroup.cs
- SchemaObjectWriter.cs
- TextTreeInsertUndoUnit.cs
- WebServiceEnumData.cs
- WebPartManager.cs
- HttpCapabilitiesEvaluator.cs
- Atom10ItemFormatter.cs
- log.cs
- InitializerFacet.cs
- MissingSatelliteAssemblyException.cs
- SQLByte.cs
- DataGridItem.cs
- ToolstripProfessionalRenderer.cs
- CodeTypeConstructor.cs
- XmlResolver.cs
- AdornedElementPlaceholder.cs
- XmlHelper.cs
- SimpleBitVector32.cs
- AnnouncementEventArgs.cs
- ReadOnlyAttribute.cs
- HtmlTernaryTree.cs
- DoneReceivingAsyncResult.cs
- BindingMAnagerBase.cs
- XPathAncestorQuery.cs
- FileReservationCollection.cs
- Registry.cs
- HideDisabledControlAdapter.cs
- TemplateField.cs
- XsdDateTime.cs
- SqlCaseSimplifier.cs
- SynchronizedInputHelper.cs
- DbException.cs
- BinaryWriter.cs
- DataRowCollection.cs
- DefaultEventAttribute.cs
- EntityReference.cs
- AuthenticationSection.cs
- TextCollapsingProperties.cs
- xmlfixedPageInfo.cs
- SessionIDManager.cs
- TextDocumentView.cs
- InstallerTypeAttribute.cs
- LineServicesCallbacks.cs
- Asn1IntegerConverter.cs
- HelpHtmlBuilder.cs
- WebUtil.cs
- WinEventWrap.cs
- BevelBitmapEffect.cs
- DataSourceControl.cs
- XmlnsCompatibleWithAttribute.cs
- ContentValidator.cs
- SchemaDeclBase.cs
- QueryMatcher.cs
- StyleSheetDesigner.cs
- ElementsClipboardData.cs
- DisposableCollectionWrapper.cs
- SerializerWriterEventHandlers.cs
- HMAC.cs
- BinaryFormatterWriter.cs
- Certificate.cs
- StyleModeStack.cs
- MinMaxParagraphWidth.cs
- HelpOperationInvoker.cs
- DataGrid.cs
- PropertyCollection.cs
- PolicyChain.cs
- ConfigUtil.cs