private void NoImagesModeToggleSwitch_Toggled(object sender, RoutedEventArgs e) { bool isNoImages = ((ToggleSwitch)sender).IsOn; SettingViewModel.UpdateNoImagesMode(isNoImages); }