diff --git a/docs/maui/behaviors/animation-behavior.md b/docs/maui/behaviors/animation-behavior.md index 7accd2da..3f85420b 100644 --- a/docs/maui/behaviors/animation-behavior.md +++ b/docs/maui/behaviors/animation-behavior.md @@ -113,9 +113,11 @@ The following example shows how to attach the `AnimationBehavior` to an `Image` #### View ```xaml - + - + + BindingContext="{Binding Path=BindingContext, Source={x:Reference ThumbsUpImage}, x:DataType=Image}" @@ -151,9 +153,12 @@ The following example shows how to add the `AnimationBehavior` to an `Entry`, bi ```xaml + Text="{Binding FirstName}" + x:Name="FirstNameEntry"> - + + BindingContext="{Binding Path=BindingContext, Source={X:Reference FirstNameEntry}, x:DataType=Entry}" diff --git a/docs/maui/behaviors/event-to-command-behavior.md b/docs/maui/behaviors/event-to-command-behavior.md index 7421c555..591b0911 100644 --- a/docs/maui/behaviors/event-to-command-behavior.md +++ b/docs/maui/behaviors/event-to-command-behavior.md @@ -33,11 +33,12 @@ The `EventToCommandBehavior` can be used as follows in XAML: x:Class="MyLittleApp.MainPage" x:Name="Page"> - @@ -99,11 +100,14 @@ By using the `EventToCommandBehavior` implementation the `EventArgs` will be The following example shows how to use the generic implementation to pass the `WebNavigatedEventArgs` into the command. ```xaml - + + x:Name="MyWebView" diff --git a/docs/maui/behaviors/image-touch-behavior.md b/docs/maui/behaviors/image-touch-behavior.md index 92d9083a..d26f1a34 100644 --- a/docs/maui/behaviors/image-touch-behavior.md +++ b/docs/maui/behaviors/image-touch-behavior.md @@ -37,7 +37,7 @@ The following examples show how to add the `ImageTouchBehavior` to an `Image` an diff --git a/docs/maui/behaviors/maximum-length-reached-behavior.md b/docs/maui/behaviors/maximum-length-reached-behavior.md index 5b25c471..193de452 100644 --- a/docs/maui/behaviors/maximum-length-reached-behavior.md +++ b/docs/maui/behaviors/maximum-length-reached-behavior.md @@ -34,10 +34,12 @@ The `MaxLengthReachedBehavior` can be used as follows in XAML: x:Name="Page"> + MaxLength="100" + x:Name="MaxLengthEntry"> - + diff --git a/docs/maui/behaviors/progressbar-animation-behavior.md b/docs/maui/behaviors/progressbar-animation-behavior.md index ab1d01f9..eb01b141 100644 --- a/docs/maui/behaviors/progressbar-animation-behavior.md +++ b/docs/maui/behaviors/progressbar-animation-behavior.md @@ -37,7 +37,7 @@ The `ProgressBarAnimationBehavior` can be used as follows in XAML: diff --git a/docs/maui/behaviors/touch-behavior.md b/docs/maui/behaviors/touch-behavior.md index e3137d2d..badd99c8 100644 --- a/docs/maui/behaviors/touch-behavior.md +++ b/docs/maui/behaviors/touch-behavior.md @@ -193,11 +193,13 @@ The following example shows how to add the `TouchBehavior` to a `HorizontalStack + HorizontalOptions="Center" + x:Name="TouchableHorizontalStackLayout"> + LongPressCommand="{Binding Source={x:Reference Page}, Path=BindingContext.IncreaseLongPressCountCommand, x:DataType=ContentPage}"/> ``` @@ -353,14 +355,18 @@ The equivalent `TouchBehavior` in .NET MAUI would look like this: #### [XAML](#tab/touchbehavior-xaml) ```xaml - + + BindingContext="{Binding Path=BindingContext, Source={x:Reference TouchableHorizontalLayout}, x:DataType=HorizontalStackLayout}" + Command="{Binding LayoutTappedCommand}" /> - +