Exemple #1
0
 public AnimationHandler(UIElement container, RefreshPullDirection pullDirection)
 {
     if (container != null)
     {
         var vis = ElementCompositionPreview.GetElementVisual(container);
         compositor = vis.Compositor;
     }
     refreshPullDirection = pullDirection;
 }
Exemple #2
0
        public ImageIRefreshInfoProviderAdapter(RefreshPullDirection refreshPullDirection, IAdapterAnimationHandler animationHandler)
        {
            this.refreshPullDirection = refreshPullDirection;

            if (animationHandler != null)
            {
                this.animationHandler = animationHandler;
            }
            else
            {
                this.animationHandler = new AnimationHandler(null, refreshPullDirection);
            }
        }
Exemple #3
0
 public RefreshInfoProviderImplementation(RefreshPullDirection refreshPullDirection, Size refreshVisualizerSize, Compositor compositor)
 {
     this.refreshPullDirection  = refreshPullDirection;
     this.refreshVisualizerSize = refreshVisualizerSize;
     compositionProperties      = compositor.CreatePropertySet();
 }