Skip to content

Commit

Permalink
Merge pull request #2593 from unoplatform/mergify/bp/release/stable/5…
Browse files Browse the repository at this point in the history
….0/pr-2580

docs: Note on `VisualStateGroup.StateTriggers` usage (backport #2580)
  • Loading branch information
agneszitte authored Oct 15, 2024
2 parents 9f3db83 + ce19d9c commit a6ccece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/Learn/Markup/VisualStateManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ new Grid()
))));
```

> [!IMPORTANT]
> When you use `StateTriggers`, ensure that the `VisualStateGroup` is declared under the first child of the root of a templated control in order for the triggers to take effect automatically. See [WinUI documentation](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.visualstate#remarks) for more information.
## Next Steps

- [Storyboards](xref:Uno.Extensions.Markup.Storyboards)

0 comments on commit a6ccece

Please sign in to comment.