🚧 databinding selection map
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9fae1d2702
commit
de321a0726
@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="Trek_12.Views.PageSelectMap"
|
||||||
|
Title="PageSelectMap">
|
||||||
|
<Grid RowDefinitions="*,auto">
|
||||||
|
<CarouselView ItemsSource="{Binding ListMap}"
|
||||||
|
PeekAreaInsets="800">
|
||||||
|
<CarouselView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Frame HasShadow="True"
|
||||||
|
BorderColor="DarkGray"
|
||||||
|
CornerRadius="5"
|
||||||
|
Margin="20"
|
||||||
|
HeightRequest="300"
|
||||||
|
WidthRequest="200"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
VerticalOptions="CenterAndExpand">
|
||||||
|
<Grid RowDefinitions="auto,*">
|
||||||
|
<Label Text="{Binding Background}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="18"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
VerticalOptions="Center"/>
|
||||||
|
<Image Source="{Binding Background}"
|
||||||
|
Aspect="AspectFill"
|
||||||
|
HeightRequest="150"
|
||||||
|
WidthRequest="150"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Grid.Row="1"/>
|
||||||
|
</Grid>
|
||||||
|
</Frame>
|
||||||
|
</DataTemplate>
|
||||||
|
</CarouselView.ItemTemplate>
|
||||||
|
</CarouselView>
|
||||||
|
</Grid>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,14 @@
|
|||||||
|
namespace Trek_12.Views;
|
||||||
|
using Stub;
|
||||||
|
|
||||||
|
public partial class PageSelectMap : ContentPage
|
||||||
|
{
|
||||||
|
|
||||||
|
public Stub MyStub { get; set; } = new Stub();
|
||||||
|
|
||||||
|
public PageSelectMap()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = MyStub;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue