/// <include file='doc\PropertyBrowserService.uex' path='docs/doc[@for="PropertyBrowserService.GetPropertyBrowser"]/*' /> /// <devdoc> /// <hidden/> /// </devdoc> public virtual PropertyBrowser GetPropertyBrowser() { if (propertyBrowser == null) { propertyBrowser = new PropertyBrowser(this); PropertyBrowser.EnableAutomationExtenders = true; LoadPbrsState(); } return propertyBrowser; }
private void Window1_ContentRendered(object sender, EventArgs e) { MenuService.MenuServiceInit(); PropertyBrowser propertyBrowser = new PropertyBrowser(); winFormHost.Child = propertyBrowser; this.DockingManager.SelectionChanged += new SelectionChangedEventHandler(DockingManager_SelectionChanged); }
// from vsshell.idl //cpp_quote("const GUID GUID_PropertyBrowser = { 0xeefa5220, 0xe298, 0x11d0, { 0x8f, 0x78, 0x0, 0xa0, 0xc9, 0x11, 0x0, 0x57 } };") public override void Dispose() { if (propertyBrowser != null) { // write the state of the alpha/cat buttons propertyBrowser.Dispose(); propertyBrowser = null; } if (commandTarget != null) { commandTarget.Dispose(); commandTarget = null; } base.Dispose(); }