From e703c544383e36d32043bd617c42b06cf4366520 Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Tue, 7 May 2024 13:15:01 +0200 Subject: [PATCH] [Blazor] Data binding - "Expressions" - alternative intro proposal (#32535) --- aspnetcore/blazor/components/data-binding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/components/data-binding.md b/aspnetcore/blazor/components/data-binding.md index 0671e65f91..e2afeded8b 100644 --- a/aspnetcore/blazor/components/data-binding.md +++ b/aspnetcore/blazor/components/data-binding.md @@ -894,7 +894,7 @@ For an alternative approach suited to sharing data in memory and across componen ## Bound field or property expression tree -A bound field or property's [expression tree](/dotnet/csharp/advanced-topics/expression-trees/) is obtained by adding a property named for the field or property (`{PARAMETER OR FIELD NAME}Expression`). +To facilitate deeper interactions with a binding, Blazor allows you to capture of the [expression tree](/dotnet/csharp/advanced-topics/expression-trees/) of a bound field or property. This is achieved by defining a property with the field or property name suffixed with `Expression`. For any given field or property named `{FIELD OR PROPERTY NAME}`, the corresponding expression tree property is named `{FIELD OR PROPERTY NAME}Expression`. The following `ChildParameterExpression` component identifies the `Year` expression's model and field name. A , which is used to obtain the model and field name, uniquely identifies a single field that can be edited. This may correspond to a property on a model object or can be any other named value. Use of a parameter's expression is useful when creating custom validation components, which isn't covered by the Microsoft Blazor documentation but is addressed by numerous third-party resources.