src/Foundation/Presentation/Gimela.Presentation.Transitions/Transition.cs
/// <summary>
/// Returns a clone of the element and hides it in the main tree
/// </summary>
/// <param name="transitionElement"></param>
/// <param name="content"></param>
/// <returns></returns>
Returns a clone of the element and hides it in the main tree
Returns a clone of the element and hides it in the main tree
protected static Brush CreateBrush(TransitionElement transitionElement, ContentPresenter content)
        {
            ((Decorator)content.Parent).Visibility = Visibility.Hidden;
            VisualBrush brush = new VisualBrush(content);
            brush.ViewportUnits = BrushMappingMode.Absolute;
            RenderOptions.SetCachingHint(brush, CachingHint.Cache);
            RenderOptions.SetCacheInvalidationThresholdMinimum(brush, 40);
            return brush;
        }
protected static Brush CreateBrush ( TransitionElement transitionElement , ContentPresenter content ) { ( ( Decorator ) content . Parent ) . Visibility = Visibility . Hidden ; VisualBrush brush = new VisualBrush ( content ) ; brush . ViewportUnits = BrushMappingMode . Absolute ; RenderOptions . SetCachingHint ( brush , CachingHint . Cache ) ; RenderOptions . SetCacheInvalidationThresholdMinimum ( brush , 40 ) ; return brush ; }
Returns a clone of the element and hides it in the main tree
Returns a clone of the element and hides it in the main tree
None
transitionElement
TransitionElement
None
content
ContentPresenter
None