WindowChrome.GetWindowChrome Method
Gets the value of the WindowChrome attached property from the specified Window.
Namespace: Microsoft.Windows.Shell
Assembly: Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)
Syntax
'Declaration
Public Shared Function GetWindowChrome ( _
window As Window _
) As WindowChrome
public static WindowChrome GetWindowChrome(
Window window
)
public:
static WindowChrome^ GetWindowChrome(
Window^ window
)
static member GetWindowChrome :
window:Window -> WindowChrome
public static function GetWindowChrome(
window : Window
) : WindowChrome
Parameters
- window
Type: System.Windows.Window
The Window from which to read the property value.
Return Value
Type: Microsoft.Windows.Shell.WindowChrome
The instance of WindowChrome that is attached to the specified Window.
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.