зеркало из https://github.com/DeGsoft/maui-linux.git
52 строки
2.8 KiB
XML
52 строки
2.8 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:controls="clr-namespace:Xamarin.Forms.Controls"
|
|
x:Class="Xamarin.Forms.Controls.Issues.Issue7512">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackLayout Orientation="Vertical" Spacing="5" Grid.Row="0" VerticalOptions="Center" BackgroundColor="Beige">
|
|
<Label LineBreakMode="WordWrap" Margin="10,0" Text="Verify that when you switch to RTL, images are placed on the right side of the screen and labels are right aligned so that the last character of each label is immediately next to an image." HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
|
|
<Label LineBreakMode="WordWrap" Margin="10,0" Text="Verify that when you switch to LTR, images are placed on the left side of the screen and labels are left aligned so that the first character of each label is immediately next to an image." HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
|
|
<Button Text="Switch to RTL" HorizontalOptions="Center" VerticalOptions="Center" Clicked="HandleButtonClick"/>
|
|
</StackLayout>
|
|
|
|
<CollectionView Grid.Row="1" ItemsSource="{Binding Monkeys}" FlowDirection="LeftToRight">
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Padding="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Image Grid.RowSpan="2"
|
|
Source="{Binding ImageUrl}"
|
|
Aspect="AspectFill"
|
|
HeightRequest="60"
|
|
WidthRequest="60" />
|
|
<Label Grid.Column="1"
|
|
Text="{Binding Name}"
|
|
FontAttributes="Bold" BackgroundColor="Red" />
|
|
<Label Grid.Row="1"
|
|
Grid.Column="1"
|
|
Text="{Binding Location}"
|
|
FontAttributes="Italic"
|
|
VerticalOptions="End" BackgroundColor="Yellow" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</CollectionView>
|
|
</Grid>
|
|
</controls:TestContentPage> |