maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Issue2289.xaml

36 строки
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<local:TestContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Xamarin.Forms.Controls"
x:Class="Xamarin.Forms.Controls.Issue2289">
<local:TestContentPage.Content>
<TableView HasUnevenRows="true">
<TableView.Root>
<TableSection Title="TextCell Disable">
<TextCell Text="txtCellDisable1" Detail="test" IsEnabled="false" />
<TextCell Text="txtCellDisable2" Height="25" IsEnabled="false" />
</TableSection>
<TableSection Title="TextCell Enable">
<TextCell Text="txtCellEnable1" Detail="test" IsEnabled="true" />
<TextCell Text="txtCellEnable2" Height="25" IsEnabled="true" />
</TableSection>
<TableSection Title="TextCell ContextActions Disable">
<TextCell Text="txtCellDisableContextActions1" Detail="test" IsEnabled="false">
<TextCell.ContextActions>
<MenuItem Command="{Binding MoreCommand}" Text="More" />
<MenuItem Command="{Binding DeleteCommand}" Text="Delete" />
</TextCell.ContextActions>
</TextCell>
</TableSection>
<TableSection Title="TextCell ContextActions Enable">
<TextCell Text="txtCellEnabledContextActions1" Detail="test" IsEnabled="true">
<TextCell.ContextActions>
<MenuItem Command="{Binding MoreCommand}" Text="More" />
<MenuItem Command="{Binding DeleteCommand}" Text="Delete" IsDestructive="true" />
</TextCell.ContextActions>
</TextCell>
</TableSection>
</TableView.Root>
</TableView>
</local:TestContentPage.Content>
</local:TestContentPage>