public void SetCaption(string s) { ThreadHelper.ThrowIfNotOnUIThread(); Log("setting to {0}", s); // the visible caption is made of a combination of the // EditorCaption and OwnerCaption; setting the EditorCaption to // null makes sure the caption can be controlled uniquely by //OwnerCaption WindowFrame.SetProperty((int)VsFramePropID.EditorCaption, null); WindowFrame.SetProperty((int)VsFramePropID.OwnerCaption, s); }
public void Initialize(string caption, object control) { WindowFrame.SetProperty((int)__VSFPROPID.VSFPROPID_CmdUIGuid, PackageGuids.DiagramToolWindowGuidString); Caption = caption; _contentPresenter.Content = control; }