Ejemplo n.º 1
0
        private void quickCollapseMenu()
        {
            LeftMenu.animate(WidthProperty, 300, 65, 0, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });
            Dimmer.animate(OpacityProperty, 300, 0, 0);
            AppToolbar.animate(OpacityProperty, 300, 1, 0, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });

            LeftIconMenu.animate(WidthProperty, 300, 65, 0, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });

            LeftTitleBar.animate(OpacityProperty, 100, 0, 0, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });
            LeftPanelItems.animate(OpacityProperty, 150, 0, 100, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });
        }
Ejemplo n.º 2
0
        private void expandMenu()
        {
            LeftMenu.animate(WidthProperty, 300, 360, 0, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });
            Dimmer.animate(OpacityProperty, 300, .5);
            AppToolbar.animate(OpacityProperty, 300, .3, 0, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });

            LeftIconMenu.animate(WidthProperty, 300, 0, 0, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });

            LeftTitleBar.animate(OpacityProperty, 200, 1, 200, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });
            LeftPanelItems.animate(OpacityProperty, 300, 1, 300, new CubicEase {
                EasingMode = EasingMode.EaseOut
            });
        }