WindowChrome.SetWindowChrome Method

Sets the value of the WindowChrome attached property on the specified Window.

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)

Syntax

'Declaration
Public Shared Sub SetWindowChrome ( _
    window As Window, _
    chrome As WindowChrome _
)
public static void SetWindowChrome(
    Window window,
    WindowChrome chrome
)
public:
static void SetWindowChrome(
    Window^ window, 
    WindowChrome^ chrome
)
static member SetWindowChrome : 
        window:Window * 
        chrome:WindowChrome -> unit 
public static function SetWindowChrome(
    window : Window, 
    chrome : WindowChrome
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

window is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

WindowChrome Class

Microsoft.Windows.Shell Namespace