WindowPane.Content Property

Definition

Gets or sets the content of this tool window.

public:
 virtual property System::Object ^ Content { System::Object ^ get(); void set(System::Object ^ value); };
public:
 virtual property Platform::Object ^ Content { Platform::Object ^ get(); void set(Platform::Object ^ value); };
public virtual object Content { get; set; }
member this.Content : obj with get, set
Public Overridable Property Content As Object

Property Value

The object that represents the content of this tool window.

Remarks

Override or set to provide the content of this tool window. Expected kinds of objects include <xref:System.FrameworkElement>, IVsUIWpfElement, or IVsUIWin32Element. If the object is not of one of the expected types, it will be wrapped in a ContentControl and treated as a WPF control. A styling or formatting may be applied through the global resource dictionary.

If your tool content is created from XAML, you must override the setter to provide a backing store for the content.

Applies to