RectNavigation.Animate.Opacity C# (CSharp) Method

Opacity() public static method

public static Opacity ( UIElement element, double from, double to, double seconds ) : void
element System.Windows.UIElement
from double
to double
seconds double
return void
        public static void Opacity(UIElement element, double from, double to, double seconds)
        {
            Opacity(element, from, to, seconds, null);
        }

Same methods

Animate::Opacity ( UIElement element, double from, double to, double seconds, AnimationCompletedDelegate callback ) : void

Usage Example

 private void setRectVisible()
 {
     Animate.Opacity(ArrowLeftViewBox, ArrowLeftViewBox.Opacity, 1, 0.2);
     Animate.Opacity(ArrowRightViewBox, ArrowRightViewBox.Opacity, 1, 0.2);
     Animate.Opacity(TopTextViewBox, TopTextViewBox.Opacity, 1, 0.2);
     Animate.Opacity(BottomTextViewBox, BottomTextViewBox.Opacity, 1, 0.2);
     Animate.Opacity(Hand, Hand.Opacity, 1, 0.2);
     Animate.Opacity(InnerRect, InnerRect.Opacity, 1, 0.2);
     PointerArrow.Visibility = Visibility.Hidden;
 }