Skip to content

Commit

Permalink
Fix mvvmtk0045 warnings for VariableMultiValueConverterViewModel (C…
Browse files Browse the repository at this point in the history
…ommunityToolkit#2401)

Co-authored-by: Brandon Minnick <[email protected]>
  • Loading branch information
ne0rrmatrix and TheCodeTraveler authored Dec 19, 2024
1 parent be16c67 commit 1bcee8c
Showing 1 changed file with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ namespace CommunityToolkit.Maui.Sample.ViewModels.Converters;
public partial class VariableMultiValueConverterViewModel : BaseViewModel
{
[ObservableProperty]
bool isAllGroupSwitch1On, isAllGroupSwitch2On, isAnyGroupSwitch1On, isAnyGroupSwitch2On,
isGreaterThanGroupSwitch1On, isGreaterThanGroupSwitch2On, isGreaterThanGroupSwitch3On, isGreaterThanGroupSwitch4On;
public partial bool IsAllGroupSwitch1On { get; set; }

[ObservableProperty]
public partial bool IsAllGroupSwitch2On { get; set; }

[ObservableProperty]
public partial bool IsAnyGroupSwitch1On { get; set; }

[ObservableProperty]
public partial bool IsAnyGroupSwitch2On { get; set; }

[ObservableProperty]
public partial bool IsGreaterThanGroupSwitch1On { get; set; }

[ObservableProperty]
public partial bool IsGreaterThanGroupSwitch2On { get; set; }

[ObservableProperty]
public partial bool IsGreaterThanGroupSwitch3On { get; set; }

[ObservableProperty]
public partial bool IsGreaterThanGroupSwitch4On { get; set; }
}

0 comments on commit 1bcee8c

Please sign in to comment.