Compartir a través de


WindowPane.Content Property

Gets or sets the content of this tool window.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Overridable Property Content As Object
public virtual Object Content { get; set; }
public:
virtual property Object^ Content {
    Object^ get ();
    void set (Object^ value);
}
abstract Content : Object with get, set 
override Content : Object with get, set
function get Content () : Object 
function set Content (value : Object)

Property Value

Type: Object
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 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.

.NET Framework Security

See Also

Reference

WindowPane Class

Microsoft.VisualStudio.Shell Namespace