Page règles
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
commit
2f571a940d
@ -1,11 +0,0 @@
|
|||||||
namespace MauiSpark.Pages;
|
|
||||||
|
|
||||||
public partial class Regle : ContentPage
|
|
||||||
{
|
|
||||||
public Regle()
|
|
||||||
{
|
|
||||||
NavigationPage.SetHasNavigationBar(this, false);
|
|
||||||
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,23 @@
|
|||||||
|
<?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="MauiSpark.Pages.ReglesPage"
|
||||||
|
xmlns:pages="clr-namespace:MauiSpark.Pages"
|
||||||
|
xmlns:vues="clr-namespace:MauiSpark.Vues"
|
||||||
|
Title="ReglesPage">
|
||||||
|
|
||||||
|
<ScrollView>
|
||||||
|
<StackLayout>
|
||||||
|
<vues:TitreVue Texte="Règles"/>
|
||||||
|
|
||||||
|
<StackLayout BindableLayout.ItemsSource="{Binding .}">
|
||||||
|
<BindableLayout.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<vues:ReglesVue Titre="{Binding Titre}" Description="{Binding Description}" Margin="10"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</BindableLayout.ItemTemplate>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="MauiSpark.Vues.ImageResultatVue"
|
||||||
|
x:Name="imageResultatVue">
|
||||||
|
|
||||||
|
<Image
|
||||||
|
Source="{Binding Image, Source={x:Reference imageResultatVue}}"
|
||||||
|
WidthRequest="100"/>
|
||||||
|
</ContentView>
|
@ -0,0 +1,18 @@
|
|||||||
|
namespace MauiSpark.Vues;
|
||||||
|
|
||||||
|
public partial class ImageResultatVue : ContentView
|
||||||
|
{
|
||||||
|
public static readonly BindableProperty ImageProperty = BindableProperty.Create(nameof(Image), typeof(string), typeof(ImageResultatVue), default(string));
|
||||||
|
|
||||||
|
public string Image
|
||||||
|
{
|
||||||
|
get => (string)GetValue(ImageProperty);
|
||||||
|
set => SetValue(ImageProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ImageResultatVue()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = this;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="MauiSpark.Vues.ReglesVue"
|
||||||
|
x:Name="reglesVue">
|
||||||
|
|
||||||
|
<Border
|
||||||
|
StrokeThickness="2"
|
||||||
|
StrokeShape="RoundRectangle 10">
|
||||||
|
|
||||||
|
<Grid RowDefinitions="auto, auto" ColumnDefinitions="*" Margin="20">
|
||||||
|
<Label Text="{Binding Titre, Source={x:Reference reglesVue}}" FontSize="Large" Margin="0, 0, 0, 20"/>
|
||||||
|
<Label Grid.Row="1" Text="{Binding Description, Source={x:Reference reglesVue}}" FontSize="Medium"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</Border>
|
||||||
|
</ContentView>
|
@ -0,0 +1,26 @@
|
|||||||
|
namespace MauiSpark.Vues;
|
||||||
|
|
||||||
|
public partial class ReglesVue : ContentView
|
||||||
|
{
|
||||||
|
public static readonly BindableProperty TitreProperty = BindableProperty.Create(nameof(Titre), typeof(string), typeof(ReglesVue), default(string));
|
||||||
|
public static readonly BindableProperty DescriptionProperty = BindableProperty.Create(nameof(Description), typeof(string), typeof(ReglesVue), default(string));
|
||||||
|
|
||||||
|
public string Titre
|
||||||
|
{
|
||||||
|
get => (string)GetValue(TitreProperty);
|
||||||
|
set => SetValue(TitreProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Description
|
||||||
|
{
|
||||||
|
get => (string)GetValue(DescriptionProperty);
|
||||||
|
set => SetValue(DescriptionProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReglesVue()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
BindingContext = this;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue