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
- window
Type: System.Windows.Window
The Window on which to set the WindowChrome attached property.
- chrome
Type: Microsoft.Windows.Shell.WindowChrome
The instance of WindowChrome to set.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | window is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.