public ConfigView(ConfigViewModel vm) { InitializeComponent(); _vm = vm; Loaded += (s, e) => DataContext = _vm; _bounceScrollbarToControl = ((Storyboard)Resources["MoveScrollbarStoryboard"]); var animation = (DoubleAnimationUsingKeyFrames)_bounceScrollbarToControl.Children[0]; _targetingKeyFrame = (EasingDoubleKeyFrame)animation.KeyFrames[0]; _bounceScrollbarToControl.Completed += (s, e) => _storyboardFinished = true; }
public void Setup() { _session = MockRepository.GenerateStub<ISession>(); _session.Stub(x => x.Get<List<Uri>>(Session.CombatantImages)).Return(new List<Uri> {new Uri("ftp://foo"), new Uri("http://bar"), new Uri("http://foobar")}); _target = new ConfigViewModel(_session, new EventAggregator()); }