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;
}
}
}
}