src/Foundation/Presentation/Gimela.Presentation.Transitions/TransitionElement.cs
/// <summary>
/// Force clip to be true if the active Transition requires it
/// </summary>
/// <param name="element"></param>
/// <param name="value"></param>
/// <returns></returns>
Force clip to be true if the active Transition requires it
Force clip to be true if the active Transition requires it
private static object CoerceClipToBounds(object element, object value)
        {
            TransitionElement transitionElement = (TransitionElement)element;
            bool clip = (bool)value;
            if (!clip && transitionElement.IsTransitioning)
            {
                Transition transition = transitionElement.Transition;
                if (transition.ClipToBounds)
                    return true;
            }
            return value;
        }
private static object CoerceClipToBounds ( object element , object value ) { TransitionElement transitionElement = ( TransitionElement ) element ; bool clip = ( bool ) value ; if ( ! clip && transitionElement . IsTransitioning ) { Transition transition = transitionElement . Transition ; if ( transition . ClipToBounds ) return true ; } return value ; }
Force clip to be true if the active Transition requires it
Force clip to be true if the active Transition requires it
None
element
object
None
value
object
None