-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabelValuePair.cs
More file actions
25 lines (21 loc) · 810 Bytes
/
Copy pathLabelValuePair.cs
File metadata and controls
25 lines (21 loc) · 810 Bytes
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
using System.Windows;
namespace BatteryMonitor
{
internal class LabelValuePair : ValueControl
{
public string Label
{
get { return (string)GetValue(LabelProperty); }
set { SetValue(LabelProperty, value); }
}
public static readonly DependencyProperty LabelProperty =
DependencyProperty.Register("Label", typeof(string), typeof(LabelValuePair), new PropertyMetadata("??"));
public string Unit
{
get { return (string)GetValue(UnitProperty); }
set { SetValue(UnitProperty, value); }
}
public static readonly DependencyProperty UnitProperty =
DependencyProperty.Register("Unit", typeof(string), typeof(LabelValuePair), new PropertyMetadata(string.Empty));
}
}