private void HideHeader()
        {
            var moveAnimation = new ThicknessAnimation(new Thickness(0, -60, 0, 0), TimeSpan.FromSeconds(0.25));

            HeaderGrid.BeginAnimation(Grid.MarginProperty, moveAnimation);

            var fadeInAnimation = new DoubleAnimation(1, TimeSpan.FromSeconds(0.25));

            TrianglePoly.BeginAnimation(Polygon.OpacityProperty, fadeInAnimation);
        }
예제 #2
0
        private void ShowHeader()
        {
            var moveAnimation = new ThicknessAnimation(new Thickness(0, 30, 0, 0), TimeSpan.FromSeconds(0.25));

            HeaderGrid.BeginAnimation(MarginProperty, moveAnimation);
            moveAnimation = new ThicknessAnimation(new Thickness(0, 130, ChatGrid.Margin.Right, 30), TimeSpan.FromSeconds(0.25));
            ChatGrid.BeginAnimation(MarginProperty, moveAnimation);

            var fadeOutAnimation = new DoubleAnimation(0, TimeSpan.FromSeconds(0.25));

            TrianglePoly.BeginAnimation(OpacityProperty, fadeOutAnimation);
        }