Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class Window1 : Window
- {
- public Window1()
- {
- InitializeComponent();
- }
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- DoubleAnimation sld_1anim = new DoubleAnimation(100, TimeSpan.FromMilliseconds(1000));
- sld_1.BeginAnimation(Slider.ValueProperty, sld_1anim);
- DoubleAnimation sld_2anim = new DoubleAnimation(50, TimeSpan.FromMilliseconds(1000));
- sld_2.BeginAnimation(Slider.ValueProperty, sld_2anim);
- DoubleAnimation sld_3anim = new DoubleAnimation(20, TimeSpan.FromMilliseconds(1000));
- sld_3.BeginAnimation(Slider.ValueProperty, sld_3anim);
- }
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- sld_1.Value = 1;
- sld_2.Value = 1;
- sld_3.Value = 1;
- MessageBox.Show(sld_1.Value.ToString());
- MessageBox.Show(sld_2.Value.ToString());
- MessageBox.Show(sld_3.Value.ToString());
- }
- }
Add Comment
Please, Sign In to add comment