private void Login3(object sender, EventArgs e)
        {
            DoubleAnimation a = new DoubleAnimation(176, TimeSpan.FromMilliseconds(500));

            UpdateButton.BeginAnimation(WidthProperty, a);
            DoubleAnimation a1 = new DoubleAnimation(64, TimeSpan.FromMilliseconds(500));

            UpdateButton.BeginAnimation(HeightProperty, a1);
        }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();
            _updateButtonClick = false;
            DataContext        = new ClientViewModel();

            DoubleAnimation buttonAnimation = new DoubleAnimation();

            buttonAnimation.From     = UpdateButton.ActualWidth;
            buttonAnimation.To       = 150;
            buttonAnimation.Duration = TimeSpan.FromSeconds(3);
            UpdateButton.BeginAnimation(Button.WidthProperty, buttonAnimation);
        }