找了WPF的资料学习,碰到一些零散的知识点,在此记录,以防忘记。
XAML中样式可以继承,用Style的BasedOn属性,下列代码:
<Window.Resources>
<Style x:Key="fatherStyle" TargetType="Button">
<Setter Property="Width" Value="100"/>
<Setter Property="Height" Value="80"/>
<Setter Property="Background" Value="AliceBlue"