最終更新:2016-02-22 (月) 17:24:48 (1627d)  

Style
Top / Style

A style consists of a list of setters.

    <Window.Resources>
        <Style x:Key="myStyle" TargetType="Button">
           <Setter Property="Background" Value="Orange" />
           <Setter Property="FontStyle" Value="Italic" />
           <Setter Property="Padding" Value="8,4" />
           <Setter Property="Margin" Value="4" />
        </Style>
    </Window.Resources>

関連

  • Setter?