API

MAUI x:DataType

Declares a binding source type for compiled bindings.

Formal Syntax & Structure

csharp syntaxcsharp
x:DataType="local:NoteViewModel"

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.x:DataType="local:NoteViewModel"
C# & .NET Reference