Skip to content

Commit

Permalink
Fix mvvmtk0045 warning for StateContainerViewModel (CommunityToolki…
Browse files Browse the repository at this point in the history
…t#2400)

Co-authored-by: Brandon Minnick <[email protected]>
  • Loading branch information
ne0rrmatrix and TheCodeTraveler authored Dec 19, 2024
1 parent 1bcee8c commit b01a18d
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,28 @@ namespace CommunityToolkit.Maui.Sample.ViewModels.Layouts;
public partial class StateContainerViewModel : BaseViewModel
{
[ObservableProperty]
string? currentState, gridState, noAnimateState, notFoundState, fullPageState;
public partial string? CurrentState { get; set; }

[ObservableProperty]
public partial string? GridState { get; set; }

[ObservableProperty]
public partial string? NoAnimateState { get; set; }

[ObservableProperty]
public partial string? NotFoundState { get; set; }

[ObservableProperty]
public partial string? FullPageState { get; set; }

[ObservableProperty, NotifyCanExecuteChangedFor(nameof(ToggleGridStateCommand))]
bool canGridStateChange = true;
public partial bool CanGridStateChange { get; set; } = true;

[ObservableProperty, NotifyCanExecuteChangedFor(nameof(CycleStatesCommand))]
bool canCycleStateChange = true;
public partial bool CanCycleStateChange { get; set; } = true;

[ObservableProperty, NotifyCanExecuteChangedFor(nameof(ToggleFullPageStateCommand))]
bool canFullPageStateChange = true;
public partial bool CanFullPageStateChange { get; set; } = true;

[ObservableProperty]
public partial bool CanAnimationStateChange { get; set; } = true;
Expand Down

0 comments on commit b01a18d

Please sign in to comment.