|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | 2 | <ContentPage |
3 | | - x:Class="PJ.ContextActions.Sample.MainPage" |
4 | | - xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
5 | | - xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
6 | | - xmlns:local="clr-namespace:PJ.ContextActions.Sample" |
7 | | - xmlns:pj="clr-namespace:PJ.ContextActions.Maui;assembly=PJ.ContextActions.Maui"> |
| 3 | + x:Class="PJ.ContextActions.Sample.MainPage" |
| 4 | + xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
| 5 | + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
| 6 | + xmlns:local="clr-namespace:PJ.ContextActions.Sample" |
| 7 | + xmlns:pj="clr-namespace:PJ.ContextActions.Maui;assembly=PJ.ContextActions.Maui"> |
8 | 8 |
|
9 | | - <Image Source="dotnet_bot.png"> |
10 | | - <Image.Behaviors> |
11 | | - <pj:ContextActionBehavior> |
12 | | - <pj:ContextActionBehavior.MenuItems> |
13 | | - <pj:MenuItem |
14 | | - Clicked="MenuItem_Clicked" |
15 | | - Icon="dotnet_bot.png" |
16 | | - Text="Primeiro" /> |
17 | | - <pj:MenuItem Command="{Binding ClickCommand}" Text="Segundo" /> |
18 | | - </pj:ContextActionBehavior.MenuItems> |
19 | | - </pj:ContextActionBehavior> |
20 | | - </Image.Behaviors> |
21 | | - </Image> |
| 9 | + <Image Source="dotnet_bot.png"> |
| 10 | + <Image.Behaviors> |
| 11 | + <pj:ContextActionBehavior> |
| 12 | + <pj:ContextActionBehavior.MenuItems> |
| 13 | + <pj:MenuItem |
| 14 | + Clicked="MenuItem_Clicked" |
| 15 | + Icon="dotnet_bot.png" |
| 16 | + Text="Primeiro" |
| 17 | + UseMenuResultModel="True" /> |
| 18 | + <pj:MenuItem |
| 19 | + Command="{Binding ClickCommand}" |
| 20 | + Text="Segundo" |
| 21 | + UseMenuResultModel="True" /> |
| 22 | + </pj:ContextActionBehavior.MenuItems> |
| 23 | + </pj:ContextActionBehavior> |
| 24 | + </Image.Behaviors> |
| 25 | + </Image> |
22 | 26 |
|
23 | 27 |
|
24 | | - <!--<CollectionView x:Name="cv"> |
| 28 | + <!--<CollectionView x:Name="cv"> |
25 | 29 | <pj:ContextActions.ContextActions> |
26 | 30 | <pj:MenuItem |
27 | 31 | Clicked="MenuItem_Clicked" |
28 | 32 | Icon="dotnet_bot.png" |
29 | | - Text="Primeiro" /> |
30 | | - <pj:MenuItem Command="{Binding ClickCommand}" Text="Segundo" /> |
| 33 | + Text="Primeiro" |
| 34 | + UseMenuResultModel="true" /> |
| 35 | + <pj:MenuItem |
| 36 | + Command="{Binding ClickCommand}" |
| 37 | + Text="Segundo" |
| 38 | + UseMenuResultModel="true" /> |
31 | 39 | </pj:ContextActions.ContextActions> |
32 | 40 |
|
33 | 41 | <CollectionView.ItemTemplate> |
|
0 commit comments