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
- ErrorView.xaml.cs
- NavigateEvent.cs
- Axis.cs
- CryptoConfig.cs
- FontCollection.cs
- FixedStringLookup.cs
- InheritanceContextChangedEventManager.cs
- SubqueryRules.cs
- WebPartMenu.cs
- WindowsIdentity.cs
- CTreeGenerator.cs
- VirtualPathUtility.cs
- MenuItemBinding.cs
- SortedDictionary.cs
- Int64Storage.cs
- ArrayElementGridEntry.cs
- SecurityException.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ImageInfo.cs
- DeflateEmulationStream.cs
- IdleTimeoutMonitor.cs
- ArrangedElementCollection.cs
- _NativeSSPI.cs
- DrawingDrawingContext.cs
- SignerInfo.cs
- DotExpr.cs
- HostingEnvironmentSection.cs
- DataRelationCollection.cs
- WebPartUtil.cs
- NullRuntimeConfig.cs
- TcpChannelFactory.cs
- CompoundFileReference.cs
- XmlWhitespace.cs
- ConfigurationManagerInternalFactory.cs
- NotifyIcon.cs
- FormViewCommandEventArgs.cs
- StreamProxy.cs
- AlphabetConverter.cs
- TextEditorTyping.cs
- ScalarOps.cs
- RelationshipFixer.cs
- TextRangeProviderWrapper.cs
- MaterializeFromAtom.cs
- ByteArrayHelperWithString.cs
- IconEditor.cs
- ExpressionBinding.cs
- VerificationException.cs
- DataGridTableCollection.cs
- Native.cs
- HttpCookiesSection.cs
- CodeMethodReturnStatement.cs
- AssemblyBuilderData.cs
- ForwardPositionQuery.cs
- MexBindingBindingCollectionElement.cs
- MsmqTransportElement.cs
- AxisAngleRotation3D.cs
- SequentialOutput.cs
- CodeCompiler.cs
- RadioButton.cs
- CodeNamespaceCollection.cs
- CharacterHit.cs
- ReferentialConstraint.cs
- TypeLibraryHelper.cs
- DynamicDocumentPaginator.cs
- TokenizerHelper.cs
- CanExecuteRoutedEventArgs.cs
- DocumentPageTextView.cs
- KeyTimeConverter.cs
- ButtonField.cs
- updatecommandorderer.cs
- WindowsListViewScroll.cs
- BooleanConverter.cs
- PropertyIDSet.cs
- XsdCachingReader.cs
- OpenTypeCommon.cs
- PagedControl.cs
- CallContext.cs
- MetadataFile.cs
- NullExtension.cs
- PerfProviderCollection.cs
- TerminateDesigner.cs
- RIPEMD160Managed.cs
- EncodingDataItem.cs
- VisualTarget.cs
- ProcessThreadDesigner.cs
- safePerfProviderHandle.cs
- ResolveResponseInfo.cs
- SqlStatistics.cs
- RelatedView.cs
- KeyValueSerializer.cs
- XmlSchemaFacet.cs
- ListViewInsertionMark.cs
- CommandHelper.cs
- TCPListener.cs
- ImmutablePropertyDescriptorGridEntry.cs
- CodeSpit.cs
- StorageEntitySetMapping.cs
- VideoDrawing.cs
- CharUnicodeInfo.cs
- SHA1CryptoServiceProvider.cs