private void checkBox1_Checked(object sender, RoutedEventArgs e)
{
if (checkBox1.IsChecked == false)
{
grid1.Visibility = System.Windows.Visibility.Hidden;
}
if (checkBox1.IsChecked == true)
{
grid1.Visibility = Visibility;
}
}
为什么 grid1.Visibility = System.Windows.Visibility.Hidden;
不工作,网格没有隐藏