所以这是我的XAML:
<Ellipse Height="100" Width="100" Margin="35,112,0,0" Name="ellipse1" Fill="Red">
<Ellipse.Style>
<Style TargetType="Ellipse">
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=checkBox1, Path=IsChecked}" Value="true">
<Setter Property="Ellipse.Visibility" Value="Collapsed"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</Ellipse.Style>
</Ellipse>
<CheckBox Content="CheckBox" Height="16" Margin="42,79,168,166" Name="checkBox1" />
当选中复选框时,椭圆当然会消失但是当它未经检查时,它会再次出现,但我不知道为什么。这种行为很正常吗?为什么会这样?