зеркало из https://github.com/DeGsoft/maui-linux.git
50 строки
2.1 KiB
XML
50 строки
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<controls:TestContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:controls="clr-namespace:Xamarin.Forms.Controls"
|
|
mc:Ignorable="d"
|
|
x:Class="Xamarin.Forms.Controls.Issues.Issue7943">
|
|
<ContentPage.Content>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid
|
|
Grid.Row="0"
|
|
BackgroundColor="Black">
|
|
<Label
|
|
TextColor="White"
|
|
Text="Press the buttons below to dynamically change the ItemTemplate and ItemsSource of the CollectionView. If change without problems, the test has passed."/>
|
|
</Grid>
|
|
<StackLayout
|
|
Grid.Row="1">
|
|
<Button
|
|
Text="Change Template"
|
|
Clicked="OnChangeTemplate"/>
|
|
<Button
|
|
Text="Change ItemsSource"
|
|
Clicked="OnChangeItemsSource"/>
|
|
<Button
|
|
Text="Clear ItemsSource"
|
|
Clicked="OnClearItemsSource"/>
|
|
</StackLayout>
|
|
<CollectionView
|
|
Grid.Row="2"
|
|
x:Name="collectionView">
|
|
<CollectionView.EmptyView>
|
|
<Grid
|
|
BackgroundColor="GreenYellow">
|
|
<Label
|
|
Text="No data available"
|
|
HorizontalOptions="Center"
|
|
VerticalOptions="Center"/>
|
|
</Grid>
|
|
</CollectionView.EmptyView>
|
|
</CollectionView>
|
|
</Grid>
|
|
</ContentPage.Content>
|
|
</controls:TestContentPage> |