void updateContent() { if (IsChecked == null) { if (ContentMiddle != null) { base.Content = ContentMiddle; } base.IsEnabled = false; return; } base.IsEnabled = true; if (IsChecked.Equals(true)) { base.Content = ContentDown; } else { base.Content = ContentUp; } }