public void AnimationTest() { vm.SourceImagePath = testImagePath; vm.StartAnimation(); Thread.Sleep(5000); vm.StopAnimation(); }
private void StartStopAnimation_Click(object sender, RoutedEventArgs e) { SBCreatorViewModel vm = DataContext as SBCreatorViewModel; if (!vm.IsAnimationPlaying) { vm.StartAnimation(); //Logger.Instance.WriteLog("Animation started!"); } else { vm.StopAnimation(); //Logger.Instance.WriteLog("Animation stopped!"); } }