WindowChrome.SetWindowChrome(Window, WindowChrome) WindowChrome.SetWindowChrome(Window, WindowChrome) WindowChrome.SetWindowChrome(Window, WindowChrome) Method

定义

设置指定的 WindowChromeWindow 附加属性的值。Sets the value of the WindowChrome attached property on the specified Window.

public:
 static void SetWindowChrome(System::Windows::Window ^ window, System::Windows::Shell::WindowChrome ^ chrome);
public static void SetWindowChrome (System.Windows.Window window, System.Windows.Shell.WindowChrome chrome);
static member SetWindowChrome : System.Windows.Window * System.Windows.Shell.WindowChrome -> unit

参数

window
Window Window Window

对其设置 Window 附加属性的 WindowChromeThe Window on which to set the WindowChrome attached property.

chrome
WindowChrome WindowChrome WindowChrome

要设置的 WindowChrome 的实例。The instance of WindowChrome to set.

异常

适用于