language: C# (mono-2.8)
date: 146 days 4 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Threading;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Media.Effects;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
 
namespace StreamLabsStreamerWpf
{
    public partial class MainWindow : Window
        {
                public MainWindow()
                {
                        this.InitializeComponent();
 
            var sb = this.TryFindResource("Storyboard1");
            Storyboard _sb = sb as Storyboard;
            MessageBox.Show(_sb.Name);
            _sb.Stop();
            //Storyboard sb = (Storyboard)this.TryFindResource("Storyboard1");
            //sb.Seek(TimeSpan.Zero);
                }
 
                void vb1_on_mouse_over(object sender, System.Windows.Input.MouseEventArgs e)
                {
            Brush brush = Brushes.Aqua;
            brush.Freeze();
 
            this.vb2_eli.Stroke = brush;
            this.vb2_p1.Stroke = brush;
            this.vb2_p2.Stroke = brush;
            this.vb3_p3.Stroke = brush;
                }
 
                void vb1_off_mouse_over(object sender, System.Windows.Input.MouseEventArgs e)
                {
                        Brush brush = Brushes.White;
            brush.Freeze();
 
            this.vb2_eli.Stroke = brush;
            this.vb2_p1.Stroke = brush;
            this.vb2_p2.Stroke = brush;
            this.vb3_p3.Stroke = brush;
                }
 
                void vb1_click(object sender, System.Windows.Input.MouseButtonEventArgs e)
                {
                        DispatcherTimer dt = new DispatcherTimer();
                        dt.Interval = new TimeSpan(0, 0, 0, 0, 1000);
                        dt.Tick += new System.EventHandler(dt_Tick);
                        dt.Start();
                }
 
                void dt_Tick(object sender, System.EventArgs e)
                {
                        for(int i = 0; i < 20; i++)
                        {
                                this.vb2_blur_eff.Radius = (double)i;
                        }
                }
        }
}