dotnet / dotnet/docs-maui

Behaviors/Handlers/Triggers/VisualState use cases

Open
#732 0 comments 0 reactions 0 assignees View on GitHub
doc-enhancement dotnet-maui/tech dotnet-mobile/prod Pri1
Dominant language
No language data
Stars
282
Forks
265
Avg merge
2d 2h
Merged PRs (30d)
19

Description

I've been reading through the .Net MAUI docs on docs.microsoft.com and am having difficulty making the distinction between use cases for Behaviors, Handlers, Triggers/VisualState.

It seems they all accomplish the same thing, particularly Behaviors and Handlers. In fact, the documentation pretty much uses the same example (Entry control customization - validity check, background color, etc.)

So what are the use cases for each? When is one technique better than the other?

Thank you.
Mike
---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: ef07fb0b-8ad4-0d83-dbe0-8ecd2e281ad3
* Version Independent ID: ef07fb0b-8ad4-0d83-dbe0-8ecd2e281ad3
* Content: [Behaviors - .NET MAUI](https://docs.microsoft.com/en-us/dotnet/maui/fundamentals/behaviors)
* Content Source: [docs/fundamentals/behaviors.md](https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/behaviors.md)
* Product: **dotnet-mobile**
* Technology: **dotnet-maui**
* GitHub Login: @davidbritch
* Microsoft Alias: **dabritch**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.