Ajout d'un dossier vue et correction d'un bug au niveau de la solution

pull/13/head
Rémi LAVERGNE 1 year ago
parent 536d155da8
commit f966490576

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.8.34408.163 VisualStudioVersion = 17.8.34408.163
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trek-12", "Trek-12\Trek-12.csproj", "{41EE7BF8-DDE6-4B00-9434-076589C0B419}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Trek-12", "Trek-12\Trek-12.csproj", "{41EE7BF8-DDE6-4B00-9434-076589C0B419}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

@ -4,12 +4,13 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" 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"
xmlns:local="clr-namespace:Trek_12" xmlns:local="clr-namespace:Trek_12"
xmlns:views="clr-namespace:Trek_12.Views"
Shell.FlyoutBehavior="Disabled" Shell.FlyoutBehavior="Disabled"
Title="Trek_12"> Title="Trek_12">
<ShellContent <ShellContent
Title="Home" Title="Home"
ContentTemplate="{DataTemplate local:MainPage}" ContentTemplate="{DataTemplate views:PageConnexion}"
Route="MainPage" /> Route="PageConnexion" />
</Shell> </Shell>

@ -24,7 +24,7 @@
<ApplicationTitle>Trek-12</ApplicationTitle> <ApplicationTitle>Trek-12</ApplicationTitle>
<!-- App Identifier --> <!-- App Identifier -->
<ApplicationId>com.companyname.trek_12</ApplicationId> <ApplicationId>com.iutclinf.trek-12</ApplicationId>
<!-- Versions --> <!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
@ -63,7 +63,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Views\" /> <MauiXaml Update="Views\PageConnexion.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -0,0 +1,83 @@
<?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.PageConnexion"
Title="PageConnexion">
<ScrollView Orientation="Vertical">
<VerticalStackLayout BackgroundColor="AliceBlue">
<Label
Text="Ceci est un bouton"
TextColor="Black"
BackgroundColor="DarkSalmon"
HorizontalTextAlignment="Center"
FontAttributes="Bold"
Margin="20"
Padding="15"
/>
<Button
CornerRadius="20"
Text="Rémi > Remi > Lucas"
WidthRequest="300"
HeightRequest="20"
/>
<Label
Text="Ceci est une scroll view d'images"
TextColor="Black"
BackgroundColor="DarkSalmon"
HorizontalTextAlignment="Center"
FontAttributes="Bold"
Margin="20"
Padding="15"
/>
<ScrollView
Orientation="Horizontal"
BackgroundColor="Azure"
Margin="20">
<HorizontalStackLayout
HeightRequest="200">
<Image
Source="tmp1.jpeg"
/>
<Image
Source="tmp2.jpeg"
/>
<Image
Source="tmp3.jpeg"
/>
<Image
Source="tmp2.jpeg"
/>
<Image
Source="tmp1.jpeg"
/>
</HorizontalStackLayout>
</ScrollView>
<Label
Text="Ceci est une search bar"
TextColor="Black"
BackgroundColor="DarkSalmon"
HorizontalTextAlignment="Center"
FontAttributes="Bold"
Margin="20"
Padding="15"
/>
<SearchBar
Placeholder="Rechercher..."
PlaceholderColor="Red"
Margin="20"
HeightRequest="50"
WidthRequest="400"
/>
</VerticalStackLayout>
</ScrollView>
</ContentPage>

@ -0,0 +1,9 @@
namespace Trek_12.Views;
public partial class PageConnexion : ContentPage
{
public PageConnexion()
{
InitializeComponent();
}
}
Loading…
Cancel
Save