Starting to add Styles

pull/10/head
Corentin LEMAIRE 2 years ago
parent 1b453ff787
commit bde24d7c92

@ -12,40 +12,6 @@
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<ContentView Style="{StaticResource FlyoutStyle}" Grid.Column="0"></ContentView>
<!--<VerticalStackLayout BackgroundColor="black" Spacing="20" Padding="0,20,0,0">
<Button Text="Home"
x:Name="bouton"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start"
Clicked="Button_Clicked">
</Button>
<Button Text="Playlist"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start">
</Button>
<Button Text="Search"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start">
</Button>
<Button Text="Favorites"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start">
</Button>
<Button Text="Log out"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="End">
</Button>
</VerticalStackLayout>-->
<ScrollView Grid.Column="1"
BackgroundColor="#404040">
@ -159,12 +125,7 @@
HorizontalTextAlignment="Center"/>
</Frame>
<Frame CornerRadius="10"
Padding="15"
Margin="10"
BorderColor="Transparent"
BackgroundColor="CornflowerBlue"
HorizontalOptions="Fill">
<Frame Style="Song">
<Label Text="Morceau 7"
FontSize="20"
TextColor="white"

@ -9,38 +9,7 @@
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<VerticalStackLayout BackgroundColor="black" Spacing="20" Padding="0,20,0,0">
<Label Text="Home"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start">
</Label>
<Label Text="Playlist"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start">
</Label>
<Label Text="Search"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start">
</Label>
<Label Text="Favorites"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="Start">
</Label>
<Label Text="Log out"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="End">
</Label>
</VerticalStackLayout>
<ContentView Style="{StaticResource FlyoutStyle}" Grid.Column="0"></ContentView>
<ScrollView Grid.Column="1"
BackgroundColor="#404040">

@ -2,7 +2,8 @@
<?xaml-comp compile="true" ?>
<ResourceDictionary
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:avatarview="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core">
<ControlTemplate x:Key="flyout">
<VerticalStackLayout BackgroundColor="black" Spacing="20">
@ -32,15 +33,23 @@
HorizontalOptions="Center"
VerticalOptions="Start">
</Button>
<Button Text="Log out"
FontSize="30"
TextColor="White"
HorizontalOptions="Center"
VerticalOptions="End">
</Button>
</VerticalStackLayout>
</ControlTemplate>
<ControlTemplate x:Key="songs">
<Frame CornerRadius="10"
Padding="15"
Margin="10"
BorderColor="Transparent"
BackgroundColor="CornflowerBlue"
HorizontalOptions="Fill">
</Frame>
</ControlTemplate>
<Style x:Key="Song" TargetType="Frame">
<Setter Property="ControlTemplate" Value="{StaticResource songs}"></Setter>
</Style>
<Style x:Key="FlyoutStyle" TargetType="ContentView">
<Setter Property="ControlTemplate" Value="{StaticResource flyout}"></Setter>
</Style>

Loading…
Cancel
Save