Skip to content

Commit 1bcee8c

Browse files
Fix mvvmtk0045 warnings for VariableMultiValueConverterViewModel (CommunityToolkit#2401)
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
1 parent be16c67 commit 1bcee8c

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

samples/CommunityToolkit.Maui.Sample/ViewModels/Converters/VariableMultiValueConverterViewModel.cs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ namespace CommunityToolkit.Maui.Sample.ViewModels.Converters;
55
public partial class VariableMultiValueConverterViewModel : BaseViewModel
66
{
77
[ObservableProperty]
8-
bool isAllGroupSwitch1On, isAllGroupSwitch2On, isAnyGroupSwitch1On, isAnyGroupSwitch2On,
9-
isGreaterThanGroupSwitch1On, isGreaterThanGroupSwitch2On, isGreaterThanGroupSwitch3On, isGreaterThanGroupSwitch4On;
8+
public partial bool IsAllGroupSwitch1On { get; set; }
9+
10+
[ObservableProperty]
11+
public partial bool IsAllGroupSwitch2On { get; set; }
12+
13+
[ObservableProperty]
14+
public partial bool IsAnyGroupSwitch1On { get; set; }
15+
16+
[ObservableProperty]
17+
public partial bool IsAnyGroupSwitch2On { get; set; }
18+
19+
[ObservableProperty]
20+
public partial bool IsGreaterThanGroupSwitch1On { get; set; }
21+
22+
[ObservableProperty]
23+
public partial bool IsGreaterThanGroupSwitch2On { get; set; }
24+
25+
[ObservableProperty]
26+
public partial bool IsGreaterThanGroupSwitch3On { get; set; }
27+
28+
[ObservableProperty]
29+
public partial bool IsGreaterThanGroupSwitch4On { get; set; }
1030
}

0 commit comments

Comments
 (0)