Пример #1
0
        private void MediaCenter_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            VisualBrush vbrush = new VisualBrush(this);

            _TransitionEffect = _TransitionEffect.Clone() as TransitionEffect;

            this.Effect = _TransitionEffect;

            // _TransitionEffect.Input = vbrush.Clone();
            _TransitionEffect.OldImage = vbrush.Clone();
            _TransitionEffect.BeginAnimation(TransitionEffect.ProgressProperty, _Animation);
        }
Пример #2
0
 private void UpdateInternVisual(Visual newValue)
 {
     if (MagnifierView != null)
     {
         VisualBrush vb = (VisualBrush)MagnifierView.Fill;
         if (vb.Visual != newValue)
         {
             if (vb.IsFrozen)
             {
                 vb = vb.Clone();
                 MagnifierView.Fill = vb;
             }
             vb.Visual = newValue;
         }
     }
 }