Beispiel #1
0
        public UserDetailsView()
        {
            this.InitializeComponent();
            Current     = this;
            _compositor = ElementCompositionPreview.GetElementVisual(this).Compositor;

            _elementImplicitAnimation = _compositor.CreateImplicitAnimationCollection();

            _elementImplicitAnimation["Opacity"] = CreateOpacityAnimation();

            _goUpButtonVisual    = GoUpButton.GetVisual();
            _refreshButtonVisual = RefreshButton.GetVisual();
            Loaded += UserDetailsViewLoaded;
        }
Beispiel #2
0
        public UserDetailsView()
        {
            this.InitializeComponent();
            Current = this;
            //DataContext = UserDetailsVM;
            //NavigationCacheMode = NavigationCacheMode.Enabled;
            _compositor = ElementCompositionPreview.GetElementVisual(this).Compositor;

            // Create ImplicitAnimations Collection.
            _elementImplicitAnimation = _compositor.CreateImplicitAnimationCollection();

            //Define trigger and animation that should play when the trigger is triggered.

            //_elementImplicitAnimation["Offset"] = CreateOffsetAnimation();
            _elementImplicitAnimation["Opacity"] = CreateOpacityAnimation();

            _goUpButtonVisual    = GoUpButton.GetVisual();
            _refreshButtonVisual = RefreshButton.GetVisual();
            Loaded           += UserDetailsViewLoaded;
            LV.ScrollChanged += LVScrollChanged;
        }