Ejemplo n.º 1
0
        private void CloseAnimation()
        {
            DoubleAnimation closeAnimation = new DoubleAnimation
            {
                From     = 500,
                To       = 0,
                Duration = new Duration(TimeSpan.FromSeconds(0.25))
            };

            ConfigPanel.BeginAnimation(ColumnDefinition.MinWidthProperty, closeAnimation);

            Height = 390;
            Width  = 200;
        }
Ejemplo n.º 2
0
        private void OpenAnimation()
        {
            Height = 360;
            Width  = 700;

            DoubleAnimation openAnimation = new DoubleAnimation
            {
                From     = 0,
                To       = 500,
                Duration = new Duration(TimeSpan.FromSeconds(0.25))
            };

            ConfigPanel.BeginAnimation(ColumnDefinition.MinWidthProperty, openAnimation);
        }