Window 样式和模板Window Styles and Templates
03/30/2017
本文内容
本主题描述控件的样式和模板 Window 。This topic describes the styles and templates for the Window control. 您可以修改默认值 ControlTemplate ,为控件指定独特的外观。You can modify the default ControlTemplate to give the control a unique appearance. 有关详细信息,请参阅为 控件创建模板。
窗口部件Window Parts
Window控件没有任何命名部分。The Window control does not have any named parts.
窗口状态Window States
下表列出了控件的可视状态 Window 。The following table lists the visual states for the Window control.
VisualState 名称VisualState Name
VisualStateGroup 名称VisualStateGroup Name
描述Description
有效Valid
ValidationStatesValidationStates
The control uses the Validation class and the Validation.HasError attached property is false.
InvalidFocusedInvalidFocused
ValidationStatesValidationStates
The Validation.HasError attached property is