Mon argument est le suivant. Pour le test j'ai besoin quand chèque utilisateur chk1 l'élément Chk2 a changé la propriété IsEnabled à Faux, mais je ne peux pas faire référence à l'élément Chk2.Appelez un autre élément à l'intérieur de WPF Tree dans le style
Il s'agit du style XAML.
<Style x:Key="styleCheckBox" TargetType="{x:Type CheckBox}">
<Style.Triggers>
<Trigger Property="IsChecked" Value="True">
</Style.Triggers>
</Style
Appel à style ..
<StackPanel>
<CheckBox x:Name="chk1" Content="CheckBox1" Style="{StaticResource styleCheckBox}"/>
<CheckBox x:Name="chk2" Content="CheckBox2"/>
</StackPanel>
Merci !!, très utile. – Rangel