Skip to content

Commit

Permalink
Enhance documentation for CancelAnimations (#2725)
Browse files Browse the repository at this point in the history
* Update basic.md | Improve documentation for CancelAnimations extension method in .NET MAUI

This PR enhances the documentation for the `CancelAnimations` extension method by:

 > Clarifying its purpose and usage.

Previously the description is unclear and vague.
  > An app can cancel one or more animations with a call to the `CancelAnimations` extension method:

* Update basic.md

* Edit.

---------

Co-authored-by: David Britch <[email protected]>
  • Loading branch information
bhavanesh2001 and davidbritch authored Jan 13, 2025
1 parent 08fe0c1 commit b822934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-interface/animation/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ In this example, the `Task.WhenAll` method contains three tasks, each of which e

## Canceling animations

An app can cancel one or more animations with a call to the <xref:Microsoft.Maui.Controls.ViewExtensions.CancelAnimations%2A> extension method:
The <xref:Microsoft.Maui.Controls.ViewExtensions.CancelAnimations%2A> extension method is used to cancel any animations, such as rotation, scaling, translation, and fading, that are running on a specific <xref:Microsoft.Maui.Controls.VisualElement>.

```csharp
image.CancelAnimations();
Expand Down

0 comments on commit b822934

Please sign in to comment.