-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSetupCollectionRow.xaml.cs
46 lines (41 loc) · 1.07 KB
/
SetupCollectionRow.xaml.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
using System.Windows;
using System.Windows.Controls;
using System.Collections.ObjectModel;
namespace SetupDiff {
public partial class SetupCollectionRow : UserControl {
public static readonly DependencyProperty HeaderProp =
DependencyProperty.Register(
"Header",
typeof (string),
typeof (SetupCollectionRow),
new FrameworkPropertyMetadata(
string.Empty));
public static readonly DependencyProperty ValsProp =
DependencyProperty.Register(
"Values",
typeof (ObservableCollection<Setting>),
typeof (SetupCollectionRow),
new FrameworkPropertyMetadata(
new ObservableCollection<Setting>()));
public SetupCollectionRow() {
this.InitializeComponent();
this.sp.DataContext = this;
}
public string Header {
get {
return (string) GetValue(HeaderProp);
}
set {
SetValue(HeaderProp, value);
}
}
public ObservableCollection<Setting> Values {
get {
return (ObservableCollection<Setting>) GetValue(ValsProp);
}
set {
SetValue(ValsProp, value);
}
}
}
}