ToolBar.CheckBoxStyleKey Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
public:
static property System::Windows::ResourceKey ^ CheckBoxStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey CheckBoxStyleKey { get; }
member this.CheckBoxStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property CheckBoxStyleKey As ResourceKey
Valeur de propriété
Clé de ressource qui représente le style par défaut des cases à cocher de la ToolBar.
Exemples
L’exemple suivant utilise cette propriété pour appliquer un Style contrôle CheckBox sur un ToolBar.
<Style x:Key="{x:Static ToolBar.CheckBoxStyleKey}" TargetType="CheckBox">
<Setter Property="Foreground" Value="DarkSlateBlue"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
Remarques
Utilisez cette propriété pour modifier le style par défaut des CheckBox contrôles sur le ToolBar.
Utilisation d'attributs XAML
<object property= »{
ToolBar.CheckBoxStyleKey}"/>