5
5
using System . Text ;
6
6
using System . Threading . Tasks ;
7
7
using System . Windows ;
8
+ using System . Windows . Controls ;
8
9
using System . Windows . Markup ;
9
10
10
11
namespace MaterialDesignColors . WpfExample . Domain
@@ -13,6 +14,9 @@ public class DemoItem : INotifyPropertyChanged
13
14
{
14
15
private string _name ;
15
16
private object _content ;
17
+ private ScrollBarVisibility _horizontalScrollBarVisibilityRequirement ;
18
+ private ScrollBarVisibility _verticalScrollBarVisibilityRequirement ;
19
+ private Thickness _marginRequirement = new Thickness ( 16 ) ;
16
20
17
21
public DemoItem ( string name , object content , IEnumerable < DocumentationLink > documentation )
18
22
{
@@ -33,6 +37,24 @@ public object Content
33
37
set { this . MutateVerbose ( ref _content , value , RaisePropertyChanged ( ) ) ; }
34
38
}
35
39
40
+ public ScrollBarVisibility HorizontalScrollBarVisibilityRequirement
41
+ {
42
+ get { return _horizontalScrollBarVisibilityRequirement ; }
43
+ set { this . MutateVerbose ( ref _horizontalScrollBarVisibilityRequirement , value , RaisePropertyChanged ( ) ) ; }
44
+ }
45
+
46
+ public ScrollBarVisibility VerticalScrollBarVisibilityRequirement
47
+ {
48
+ get { return _verticalScrollBarVisibilityRequirement ; }
49
+ set { this . MutateVerbose ( ref _verticalScrollBarVisibilityRequirement , value , RaisePropertyChanged ( ) ) ; }
50
+ }
51
+
52
+ public Thickness MarginRequirement
53
+ {
54
+ get { return _marginRequirement ; }
55
+ set { this . MutateVerbose ( ref _marginRequirement , value , RaisePropertyChanged ( ) ) ; }
56
+ }
57
+
36
58
public IEnumerable < DocumentationLink > Documentation { get ; }
37
59
38
60
public event PropertyChangedEventHandler PropertyChanged ;
0 commit comments