public AnimationHandler(UIElement container, RefreshPullDirection pullDirection) { if (container != null) { var vis = ElementCompositionPreview.GetElementVisual(container); compositor = vis.Compositor; } refreshPullDirection = pullDirection; }
public ImageIRefreshInfoProviderAdapter(RefreshPullDirection refreshPullDirection, IAdapterAnimationHandler animationHandler) { this.refreshPullDirection = refreshPullDirection; if (animationHandler != null) { this.animationHandler = animationHandler; } else { this.animationHandler = new AnimationHandler(null, refreshPullDirection); } }
public RefreshInfoProviderImplementation(RefreshPullDirection refreshPullDirection, Size refreshVisualizerSize, Compositor compositor) { this.refreshPullDirection = refreshPullDirection; this.refreshVisualizerSize = refreshVisualizerSize; compositionProperties = compositor.CreatePropertySet(); }