@@ -8,111 +8,111 @@ namespace Maui.Controls.Sample;
88
99public partial class CheckBoxFeatureMatrixViewModel : INotifyPropertyChanged
1010{
11- private bool _isChecked = true ;
12- private Color _color = null ;
13- private bool _isEnabled = true ;
14- private bool _isVisible = true ;
15- private string _checkedChangedStatus = string . Empty ;
16- private bool _isEventStatusLabelVisible = false ;
11+ private bool _isChecked = true ;
12+ private Color _color = null ;
13+ private bool _isEnabled = true ;
14+ private bool _isVisible = true ;
15+ private string _checkedChangedStatus = string . Empty ;
16+ private bool _isEventStatusLabelVisible = false ;
1717
18- public event PropertyChangedEventHandler PropertyChanged ;
18+ public event PropertyChangedEventHandler PropertyChanged ;
1919
20- public CheckBoxFeatureMatrixViewModel ( )
21- {
22- CheckedChangedCommand = new Command ( OnCheckedChanged ) ;
23- }
20+ public CheckBoxFeatureMatrixViewModel ( )
21+ {
22+ CheckedChangedCommand = new Command ( OnCheckedChanged ) ;
23+ }
2424
25- public bool IsChecked
26- {
27- get => _isChecked ;
28- set
29- {
30- if ( _isChecked != value )
31- {
32- _isChecked = value ;
33- OnPropertyChanged ( ) ;
34- }
35- }
36- }
25+ public bool IsChecked
26+ {
27+ get => _isChecked ;
28+ set
29+ {
30+ if ( _isChecked != value )
31+ {
32+ _isChecked = value ;
33+ OnPropertyChanged ( ) ;
34+ }
35+ }
36+ }
3737
38- public Color Color
39- {
40- get => _color ;
41- set
42- {
43- if ( _color != value )
44- {
45- _color = value ;
46- OnPropertyChanged ( ) ;
47- }
48- }
49- }
38+ public Color Color
39+ {
40+ get => _color ;
41+ set
42+ {
43+ if ( _color != value )
44+ {
45+ _color = value ;
46+ OnPropertyChanged ( ) ;
47+ }
48+ }
49+ }
5050
51- public bool IsEnabled
52- {
53- get => _isEnabled ;
54- set
55- {
56- if ( _isEnabled != value )
57- {
58- _isEnabled = value ;
59- OnPropertyChanged ( ) ;
60- }
61- }
62- }
51+ public bool IsEnabled
52+ {
53+ get => _isEnabled ;
54+ set
55+ {
56+ if ( _isEnabled != value )
57+ {
58+ _isEnabled = value ;
59+ OnPropertyChanged ( ) ;
60+ }
61+ }
62+ }
6363
64- public bool IsVisible
65- {
66- get => _isVisible ;
67- set
68- {
69- if ( _isVisible != value )
70- {
71- _isVisible = value ;
72- OnPropertyChanged ( ) ;
73- }
74- }
75- }
64+ public bool IsVisible
65+ {
66+ get => _isVisible ;
67+ set
68+ {
69+ if ( _isVisible != value )
70+ {
71+ _isVisible = value ;
72+ OnPropertyChanged ( ) ;
73+ }
74+ }
75+ }
7676
77- public string CheckedChangedStatus
78- {
79- get => _checkedChangedStatus ;
80- set
81- {
82- if ( _checkedChangedStatus != value )
83- {
84- if ( ! string . IsNullOrEmpty ( value ) )
85- {
86- IsEventStatusLabelVisible = true ;
87- }
88- _checkedChangedStatus = value ;
89- OnPropertyChanged ( ) ;
90- }
91- }
92- }
77+ public string CheckedChangedStatus
78+ {
79+ get => _checkedChangedStatus ;
80+ set
81+ {
82+ if ( _checkedChangedStatus != value )
83+ {
84+ if ( ! string . IsNullOrEmpty ( value ) )
85+ {
86+ IsEventStatusLabelVisible = true ;
87+ }
88+ _checkedChangedStatus = value ;
89+ OnPropertyChanged ( ) ;
90+ }
91+ }
92+ }
9393
94- public bool IsEventStatusLabelVisible
95- {
96- get => _isEventStatusLabelVisible ;
97- set
98- {
99- if ( _isEventStatusLabelVisible != value )
100- {
101- _isEventStatusLabelVisible = value ;
102- OnPropertyChanged ( ) ;
103- }
104- }
105- }
94+ public bool IsEventStatusLabelVisible
95+ {
96+ get => _isEventStatusLabelVisible ;
97+ set
98+ {
99+ if ( _isEventStatusLabelVisible != value )
100+ {
101+ _isEventStatusLabelVisible = value ;
102+ OnPropertyChanged ( ) ;
103+ }
104+ }
105+ }
106106
107- public ICommand CheckedChangedCommand { get ; }
107+ public ICommand CheckedChangedCommand { get ; }
108108
109- private void OnCheckedChanged ( )
110- {
111- CheckedChangedStatus = "CheckedChanged Triggered" ;
112- }
109+ private void OnCheckedChanged ( )
110+ {
111+ CheckedChangedStatus = "CheckedChanged Triggered" ;
112+ }
113113
114- protected void OnPropertyChanged ( [ CallerMemberName ] string propertyName = null )
115- {
116- PropertyChanged ? . Invoke ( this , new PropertyChangedEventArgs ( propertyName ) ) ;
117- }
114+ protected void OnPropertyChanged ( [ CallerMemberName ] string propertyName = null )
115+ {
116+ PropertyChanged ? . Invoke ( this , new PropertyChangedEventArgs ( propertyName ) ) ;
117+ }
118118}
0 commit comments