嗨,我有一个显示“True”的按钮,当用户按下它时,我希望它显示为“False”。我尝试了以下方法,但它不起作用。有人可以帮忙吗?谢谢
Private Sub buttonTrue_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles buttonTrue.Click
buttonTrue.Content = "False"
按钮的 XML:
<Button Content="True" Grid.Row="1" Height="200" Margin="185,260,156,0" Name="buttonTrue" VerticalAlignment="Top" Background="Black" BorderThickness="3" BorderBrush="White" />