-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathMix.cs
43 lines (34 loc) · 1.28 KB
/
Mix.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Xml.Serialization;
namespace vMixAPI
{
[Serializable]
public class Mix: DependencyObject
{
[XmlAttribute("number")]
public int Number { get; set; }
[XmlElement("preview")]
public int Preview
{
get { return (int)GetValue(PreviewProperty); }
set { SetValue(PreviewProperty, value); }
}
// Using a DependencyProperty as the backing store for Preview. This enables animation, styling, binding, etc...
public static readonly DependencyProperty PreviewProperty =
DependencyProperty.Register("Preview", typeof(int), typeof(Mix), new PropertyMetadata(0));
[XmlElement("active")]
public int Active
{
get { return (int)GetValue(ActiveProperty); }
set { SetValue(ActiveProperty, value); }
}
// Using a DependencyProperty as the backing store for Active. This enables animation, styling, binding, etc...
public static readonly DependencyProperty ActiveProperty =
DependencyProperty.Register("Active", typeof(int), typeof(Mix), new PropertyMetadata(0));
}
}