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
- AppSettingsExpressionEditor.cs
- StructuralCache.cs
- IisTraceWebEventProvider.cs
- XmlUrlResolver.cs
- RightsManagementEncryptedStream.cs
- ObjectDataSourceMethodEventArgs.cs
- HandlerElementCollection.cs
- AppDomainManager.cs
- ProcessInputEventArgs.cs
- Path.cs
- SQLDoubleStorage.cs
- TextServicesCompartmentEventSink.cs
- PartManifestEntry.cs
- OracleConnection.cs
- HttpPostedFile.cs
- XmlUnspecifiedAttribute.cs
- MemberHolder.cs
- TypeInitializationException.cs
- WebDisplayNameAttribute.cs
- RenderCapability.cs
- ProgramNode.cs
- EditingScopeUndoUnit.cs
- Filter.cs
- SequenceRange.cs
- WebContext.cs
- SupportingTokenAuthenticatorSpecification.cs
- CatalogZoneBase.cs
- Part.cs
- ColorConverter.cs
- ScriptIgnoreAttribute.cs
- ConditionChanges.cs
- WriteableBitmap.cs
- ApplicationBuildProvider.cs
- Stack.cs
- RegistryPermission.cs
- IndexedWhereQueryOperator.cs
- PeerNameResolver.cs
- CommentEmitter.cs
- ApplicationInfo.cs
- CompositeScriptReference.cs
- Unit.cs
- TypeGeneratedEventArgs.cs
- DoubleMinMaxAggregationOperator.cs
- ProtectedProviderSettings.cs
- COM2IPerPropertyBrowsingHandler.cs
- ButtonChrome.cs
- XmlSchemaAny.cs
- SignedXml.cs
- StoragePropertyMapping.cs
- TimeSpanMinutesConverter.cs
- OleStrCAMarshaler.cs
- DrawTreeNodeEventArgs.cs
- Utilities.cs
- NonClientArea.cs
- DateTimeFormatInfo.cs
- DetailsViewPagerRow.cs
- TypeConvertions.cs
- XmlMemberMapping.cs
- ChainOfResponsibility.cs
- TextServicesHost.cs
- ObjectDataProvider.cs
- FieldMetadata.cs
- OutputCacheModule.cs
- DbSetClause.cs
- SmiRequestExecutor.cs
- ComponentEditorForm.cs
- ScrollViewerAutomationPeer.cs
- Pens.cs
- SystemIPInterfaceStatistics.cs
- AddInProcess.cs
- SocketElement.cs
- SqlGatherConsumedAliases.cs
- CompareValidator.cs
- HandleCollector.cs
- InputMethodStateTypeInfo.cs
- ErrorInfoXmlDocument.cs
- SmiEventSink.cs
- DeploymentExceptionMapper.cs
- StateDesigner.Helpers.cs
- HostingEnvironment.cs
- VectorAnimationUsingKeyFrames.cs
- TextEditorLists.cs
- WindowsIPAddress.cs
- HtmlTitle.cs
- XPathNodePointer.cs
- Binding.cs
- BrowserCapabilitiesFactoryBase.cs
- Base64Encoder.cs
- MsmqReceiveParameters.cs
- NGCSerializationManagerAsync.cs
- SoapHeaderException.cs
- FusionWrap.cs
- SQLDouble.cs
- ColumnWidthChangedEvent.cs
- ListSortDescription.cs
- CodeTypeConstructor.cs
- ICollection.cs
- HtmlTableRow.cs
- future.cs
- TextAdaptor.cs