-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathMaster.cs
48 lines (42 loc) · 1.58 KB
/
Master.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
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows;
using System.Xml.Serialization;
namespace vMixAPI
{
[Serializable]
public class Master : DependencyObject
{
[XmlIgnore]
public virtual string Name { get { return "Master"; } }
[XmlAttribute("headphonesVolume")]
public double HeadphonesVolume { get; set; }
[XmlAttribute("volume")]
public double Volume
{
get { return (double)GetValue(VolumeProperty); }
set { SetValue(VolumeProperty, value); }
}
// Using a DependencyProperty as the backing store for Volume. This enables animation, styling, binding, etc...
public static readonly DependencyProperty VolumeProperty =
DependencyProperty.Register("Volume", typeof(double), typeof(Master), new PropertyMetadata(0.0));
[XmlAttribute("muted")]
public bool Muted
{
get { return (bool)GetValue(MutedProperty); }
set { SetValue(MutedProperty, value); }
}
// Using a DependencyProperty as the backing store for Muted. This enables animation, styling, binding, etc...
public static readonly DependencyProperty MutedProperty =
DependencyProperty.Register("Muted", typeof(bool), typeof(Master), new PropertyMetadata(false));
[XmlAttribute("meterF1")]
public double MeterF1 { get; set; }
[XmlAttribute("meterF2")]
public double MeterF2 { get; set; }
public Master()
{
}
}
}