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
- DebugControllerThread.cs
- Odbc32.cs
- RefreshPropertiesAttribute.cs
- InternalBufferManager.cs
- SafeSerializationManager.cs
- CustomValidator.cs
- UInt64Converter.cs
- ExtendedProperty.cs
- XmlExpressionDumper.cs
- ValueSerializer.cs
- SingleKeyFrameCollection.cs
- ContextInformation.cs
- SqlInfoMessageEvent.cs
- EntityStoreSchemaGenerator.cs
- ConstraintStruct.cs
- KerberosReceiverSecurityToken.cs
- DataBoundControl.cs
- RelationshipEndCollection.cs
- ITreeGenerator.cs
- LoopExpression.cs
- GridViewUpdatedEventArgs.cs
- TableNameAttribute.cs
- RIPEMD160.cs
- ExpressionNode.cs
- ExtensionQuery.cs
- XamlBrushSerializer.cs
- DbConnectionPoolGroup.cs
- PkcsUtils.cs
- NumericPagerField.cs
- Margins.cs
- QueryParameter.cs
- PenThreadWorker.cs
- XsdBuildProvider.cs
- BindingExpressionUncommonField.cs
- Rotation3DKeyFrameCollection.cs
- PtsHost.cs
- Pair.cs
- LinkTarget.cs
- ImageDrawing.cs
- IfAction.cs
- TextEditorSelection.cs
- RectValueSerializer.cs
- RunClient.cs
- OdbcHandle.cs
- TextViewElement.cs
- Popup.cs
- PrimaryKeyTypeConverter.cs
- OleDbConnectionFactory.cs
- ContextQuery.cs
- EntityClientCacheKey.cs
- RepeaterItem.cs
- Types.cs
- HtmlButton.cs
- XmlCharCheckingReader.cs
- MethodCallConverter.cs
- Transform3D.cs
- TracingConnection.cs
- TypeForwardedToAttribute.cs
- WinFormsComponentEditor.cs
- CacheChildrenQuery.cs
- FrameworkPropertyMetadata.cs
- RoamingStoreFile.cs
- StorageTypeMapping.cs
- ValidatorCompatibilityHelper.cs
- PropertyRecord.cs
- TableRowGroupCollection.cs
- AttributeTableBuilder.cs
- SR.cs
- XmlIlTypeHelper.cs
- CodeGotoStatement.cs
- RuleSet.cs
- TextModifier.cs
- TablePattern.cs
- TextStore.cs
- _LocalDataStore.cs
- OLEDB_Util.cs
- XslTransform.cs
- IgnoreSectionHandler.cs
- PerformanceCounter.cs
- BindStream.cs
- ScriptingJsonSerializationSection.cs
- MSAANativeProvider.cs
- ServicePointManager.cs
- Error.cs
- ExtendedPropertyDescriptor.cs
- SemanticAnalyzer.cs
- TdsParserHelperClasses.cs
- TableDetailsRow.cs
- XamlTypeMapperSchemaContext.cs
- HtmlTitle.cs
- ExecutedRoutedEventArgs.cs
- AssemblyCollection.cs
- GridViewColumn.cs
- QueryPageSettingsEventArgs.cs
- EnumValAlphaComparer.cs
- ItemAutomationPeer.cs
- TextComposition.cs
- validationstate.cs
- PropertyChangingEventArgs.cs
- XmlSortKey.cs