Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/maui/behaviors/animation-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void Save()
{
if (string.IsNullOrEmpty(FirstName))
{
TriggerAnimationCommand.Execute(null);
TriggerAnimationCommand.Execute(CancellationToken.None);
return;
}

Expand All @@ -184,7 +184,7 @@ public void Save()
```

> [!NOTE]
> The `AnimateCommand` property is read-only and expects a binding mode of `BindingMode.OneWay`.
> The `AnimateCommand` property is read-only and expects a binding mode of `BindingMode.OneWayToSource`. You also do not need to assign a value to the command property in your view model (`TriggerAnimationCommand` in the example above), this is because the binding will assign the value to your property from the value created in the `AnimationBehavior`.

This provides the ability to trigger an animation from within a view model.

Expand Down