Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / VsPropertyGrid.cs / 1 / VsPropertyGrid.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Windows.Forms; using System.Data; using System.Drawing.Design; using System.Diagnostics; using System.Design; using System.Windows.Forms.Layout; // Internal wrapper for the propertyGrids on the CollectionEditors so that they have the correct renderer to Render VS-Shell like ToolStrips. internal class VsPropertyGrid : PropertyGrid { public VsPropertyGrid(IServiceProvider serviceProvider) : base() { if (serviceProvider != null) { IUIService uis = serviceProvider.GetService(typeof(IUIService)) as IUIService; if (uis != null) { this.ToolStripRenderer = (ToolStripProfessionalRenderer)uis.Styles["VsToolWindowRenderer"]; } } } } } // 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
- ViewStateException.cs
- SelectionPatternIdentifiers.cs
- EventPropertyMap.cs
- TextSchema.cs
- SourceFilter.cs
- CodeGeneratorOptions.cs
- SweepDirectionValidation.cs
- ArraySet.cs
- ToolStripContainer.cs
- Panel.cs
- HuffCodec.cs
- VersionConverter.cs
- UserControl.cs
- XmlAnyElementAttributes.cs
- StringUtil.cs
- Column.cs
- Timeline.cs
- DataSetUtil.cs
- EditorPartDesigner.cs
- LightweightCodeGenerator.cs
- SqlBuffer.cs
- ExtensibleSyndicationObject.cs
- TextEndOfLine.cs
- AbsoluteQuery.cs
- OuterGlowBitmapEffect.cs
- VisualStateChangedEventArgs.cs
- XmlSchemaValidator.cs
- StandardBindingElement.cs
- ElementMarkupObject.cs
- EntityCollection.cs
- LinkUtilities.cs
- XmlTextReaderImpl.cs
- ProfessionalColors.cs
- HtmlTableRowCollection.cs
- FlatButtonAppearance.cs
- ProtectedConfiguration.cs
- DataGridLinkButton.cs
- KeyboardDevice.cs
- NavigateEvent.cs
- ProtocolElementCollection.cs
- CodeAssignStatement.cs
- MatrixKeyFrameCollection.cs
- MsmqIntegrationSecurity.cs
- TrustManagerMoreInformation.cs
- ImageInfo.cs
- LoopExpression.cs
- XmlNode.cs
- WebControlAdapter.cs
- ProfilePropertyMetadata.cs
- ProcessProtocolHandler.cs
- PeerNameRecord.cs
- SuppressIldasmAttribute.cs
- LockCookie.cs
- XsltContext.cs
- XmlSerializationWriter.cs
- HtmlSelect.cs
- ExpressionNormalizer.cs
- Crc32Helper.cs
- BamlBinaryReader.cs
- String.cs
- DataGridViewRowsAddedEventArgs.cs
- JpegBitmapEncoder.cs
- TreeIterator.cs
- DisposableCollectionWrapper.cs
- TableRow.cs
- MD5.cs
- WindowsToolbarItemAsMenuItem.cs
- ScrollBar.cs
- XmlNodeChangedEventArgs.cs
- ObjectConverter.cs
- ConfigXmlCDataSection.cs
- CipherData.cs
- WorkflowOperationFault.cs
- FastEncoderStatics.cs
- XmlNotation.cs
- XmlSchemaSequence.cs
- Bits.cs
- HandledEventArgs.cs
- TextBlock.cs
- CompiledELinqQueryState.cs
- DockProviderWrapper.cs
- CheckBoxList.cs
- CommandPlan.cs
- DataGridViewCellEventArgs.cs
- DelegatingConfigHost.cs
- Transform.cs
- TableLayoutColumnStyleCollection.cs
- ClientTargetCollection.cs
- XmlReflectionMember.cs
- SafeSystemMetrics.cs
- XmlNodeList.cs
- ExceptionUtil.cs
- LiteralControl.cs
- CapabilitiesSection.cs
- HttpHandlersSection.cs
- DbConnectionHelper.cs
- BindingExpression.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- MsdtcWrapper.cs
- ConfigurationStrings.cs