private void CheckStoringenVisible() { if (_vm.StoringenVisible && !_animationPlayed) { _animationPlayed = true; StoringenVisible.Begin(); } }
void _vm_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == "StoringenVisible") { if (_vm.StoringenVisible) { StoringenVisible.Begin(); } } else if (e.PropertyName == "InMyStations") { if (_vm.InMyStations) { (ApplicationBar.MenuItems[1] as ApplicationBarMenuItem).Text = AppResources.StationTijdenDeleteButton; (ApplicationBar.Buttons[1] as ApplicationBarIconButton).IsEnabled = false; } else { (ApplicationBar.MenuItems[1] as ApplicationBarMenuItem).Text = AppResources.StationTijdenAddButton; } } }