Beispiel #1
0
        private void UpdateImageScrollBar(double value)
        {
            //TODO: tie this animation into the Translate RenderTransform properties changes
            _imageScrollBarAnimation.From = _imageScrollBar.Value;
            _imageScrollBarAnimation.To   = Math.Abs(value);
            _imageScrollBar.BeginAnimation(ScrollBar.ValueProperty, _imageScrollBarAnimation);

            //_imageScrollBar.Value = Math.Abs(value);
        }
Beispiel #2
0
 public void HideScrollbar()
 {
     _vScrollBar.BeginAnimation(ScrollBar.OpacityProperty, _hideanimation);
     _hScrollBar.BeginAnimation(ScrollBar.OpacityProperty, _hideanimation);
 }
Beispiel #3
0
 private void UpdateProgressScrollBar(double value)
 {
     _imageScrollBarAnimation.From = _progressScrollBar.Value;
     _imageScrollBarAnimation.To   = value;
     _progressScrollBar.BeginAnimation(ScrollBar.ValueProperty, _imageScrollBarAnimation);
 }