Ejemplo n.º 1
0
 public void AnimationTest()
 {
     vm.SourceImagePath = testImagePath;
     vm.StartAnimation();
     Thread.Sleep(5000);
     vm.StopAnimation();
 }
Ejemplo n.º 2
0
        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!");
            }
        }