Transformation de content page en content view
continuous-integration/drone/push Build is failing Details

UI_Windows
Raphael LACOTE 2 years ago
parent 8799539316
commit 9c106a06de

@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Compte" x:Class="IHM.Desktop.Compte"
Title="Compte"
BackgroundColor="{StaticResource Yellow300Accent}"> BackgroundColor="{StaticResource Yellow300Accent}">
<StackLayout Margin="20" Orientation="Vertical"> <StackLayout Margin="20" Orientation="Vertical">
@ -30,4 +29,4 @@
</StackLayout> </StackLayout>
</ContentPage> </ContentView>

@ -1,6 +1,6 @@
namespace IHM.Desktop; namespace IHM.Desktop;
public partial class Compte : ContentPage public partial class Compte : ContentView
{ {
public Compte() public Compte()
{ {

@ -32,9 +32,9 @@
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="1" Grid.Column="0" Grid.RowSpan="6"> <StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="1" Grid.Column="0" Grid.RowSpan="6">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource White}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="1" ></Button> <Button Text="ACCUEIL" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource White}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="1" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="2"></Button> <Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="2" Clicked="Button_compte"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="3"></Button> <Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="3" Clicked="Button_operation"></Button>
<Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="4"></Button> <Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="4" Clicked="Button_echeancier"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="5" Clicked="Button_planification"></Button> <Button Text="PLANIFICATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="5" Clicked="Button_planification"></Button>
<Button Text="STATISTIQUES" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="6"></Button> <Button Text="STATISTIQUES" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="6"></Button>
</StackLayout> </StackLayout>

@ -16,17 +16,17 @@ public partial class Dashboard
private void Button_echeancier(object sender, EventArgs e) private void Button_echeancier(object sender, EventArgs e)
{ {
mainCV.Content = new Echeancier();
} }
private void Button_operation(object sender, EventArgs e) private void Button_operation(object sender, EventArgs e)
{ {
mainCV.Content = new Operations();
} }
private void Button_compte(object sender, EventArgs e) private void Button_compte(object sender, EventArgs e)
{ {
mainCV.Content = new Compte();
} }
private void Button_Clicked(object sender, EventArgs e) private void Button_Clicked(object sender, EventArgs e)

@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Echeancier" x:Class="IHM.Desktop.Echeancier"
Title="Echeancier"
BackgroundColor="{StaticResource Yellow300Accent}"> BackgroundColor="{StaticResource Yellow300Accent}">
<VerticalStackLayout Margin="20"> <VerticalStackLayout Margin="20">
@ -28,12 +27,12 @@
<HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Fill"> <HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Fill">
<Border Background="Green" <Border Background="{StaticResource Primary}"
Style="{StaticResource TotalButton}"> Style="{StaticResource TotalButton}">
<Label Text=" -- BINDING -- " FontFamily="Comic sans MS"/> <Label Text=" -- BINDING -- " FontFamily="Comic sans MS"/>
</Border> </Border>
<Border Background="Brown" <Border Background="{StaticResource Tertiary}"
Style="{StaticResource TotalButton}"> Style="{StaticResource TotalButton}">
<Label Text=" -- BINDING -- " FontFamily="Comic sans MS"/> <Label Text=" -- BINDING -- " FontFamily="Comic sans MS"/>
</Border> </Border>
@ -43,4 +42,4 @@
</VerticalStackLayout> </VerticalStackLayout>
</ContentPage> </ContentView>

@ -1,6 +1,6 @@
namespace IHM.Desktop; namespace IHM.Desktop;
public partial class Echeancier : ContentPage public partial class Echeancier : ContentView
{ {
public Echeancier() public Echeancier()
{ {

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Operations" x:Class="IHM.Desktop.Operations"
Title="Operations"
BackgroundColor="{StaticResource Yellow300Accent}"> BackgroundColor="{StaticResource Yellow300Accent}">
<VerticalStackLayout> <VerticalStackLayout Margin="20">
<Label <Label
Style="{StaticResource TitreWindows}" Style="{StaticResource TitreWindows}"
Text="OPERATION" Text="OPERATION"
@ -35,4 +34,4 @@
</VerticalStackLayout> </VerticalStackLayout>
</ContentPage> </ContentView>

@ -1,6 +1,6 @@
namespace IHM.Desktop; namespace IHM.Desktop;
public partial class Operations : ContentPage public partial class Operations : ContentView
{ {
public Operations() public Operations()
{ {

@ -43,7 +43,7 @@
<LinearGradientBrush x:Key="TestColor" StartPoint="0,0" EndPoint="1,1"> <LinearGradientBrush x:Key="TestColor" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="RosyBrown" Offset="0" /> <GradientStop Color="RosyBrown" Offset="0" />
<GradientStop Color="Brown" Offset="0.5" /> <GradientStop Color="{StaticResource Tertiary}" Offset="0.5" />
<GradientStop Color="RosyBrown" Offset="1" /> <GradientStop Color="RosyBrown" Offset="1" />
</LinearGradientBrush> </LinearGradientBrush>

@ -408,16 +408,16 @@
<Setter Property="TextColor" Value="Black"/> <Setter Property="TextColor" Value="Black"/>
<Setter Property="Margin" Value="20"/> <Setter Property="Margin" Value="20"/>
<Setter Property="CornerRadius" Value="20"/> <Setter Property="CornerRadius" Value="20"/>
<Setter Property="BorderWidth" Value="2"/> <Setter Property="BorderWidth" Value="1"/>
<Setter Property="BorderColor" Value="Black"/> <Setter Property="BorderColor" Value="Black"/>
<Setter Property="FontFamily" Value="Comic sans MS"/> <Setter Property="FontFamily" Value="Comic sans MS"/>
<Setter Property="Background" Value="{StaticResource TestColor}"/> <Setter Property="Background" Value="{StaticResource TestColor}"/>
</Style> </Style>
<Style TargetType="Border" x:Key="TotalButton"> <Style TargetType="Border" x:Key="TotalButton">
<Setter Property="StrokeThickness" Value="2"/> <Setter Property="StrokeThickness" Value="1"/>
<Setter Property="Padding" Value="220,8"/> <Setter Property="Padding" Value="250,8"/>
<Setter Property="StrokeShape" Value="RoundRectangle 20,20,20,20"/> <Setter Property="StrokeShape" Value="RoundRectangle 10,10,10,10"/>
<Setter Property="Stroke" Value="Black"/> <Setter Property="Stroke" Value="Black"/>
</Style> </Style>

Loading…
Cancel
Save