ToolBar.RadioButtonStyleKey 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.
Obtient le Style appliqué aux cases d'option d'une barre d'outils.
public:
static property System::Windows::ResourceKey ^ RadioButtonStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey RadioButtonStyleKey { get; }
member this.RadioButtonStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property RadioButtonStyleKey As ResourceKey
Valeur de propriété
Clé de ressource qui représente le style par défaut des cases d'option de la barre d'outils.
Exemples
L’exemple suivant utilise cette propriété pour appliquer un Style contrôle RadioButton sur un ToolBar.
<Style x:Key="{x:Static ToolBar.RadioButtonStyleKey}" TargetType="RadioButton">
<Setter Property="Background" Value="LightSteelBlue"/>
<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 RadioButton contrôles sur le ToolBar.
Utilisation d'attributs XAML
<object property= »{
ToolBar.RadioButtonStyleKey}"/>