Ch.Epyx.WindMobile.WP7.View.Transition.FadeTransition.GetTransition C# (CSharp) Method

GetTransition() public method

public GetTransition ( UIElement element ) : ITransition
element UIElement
return ITransition
        public override ITransition GetTransition(UIElement element)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }
            Storyboard storyboard = GetStoryboard(FadeMode.ToString());
            Storyboard.SetTarget(storyboard, element);
            element.Projection = new PlaneProjection { CenterOfRotationX = 0.5, CenterOfRotationY = 0.5 };
            return new Microsoft.Phone.Controls.Transition(element, storyboard);
        }