(ToDo : OnClickBookButton Orange, finish vertical alphabet, Plus Popup Lines)homepage-05-09
parent
ba008b71e5
commit
804529aa0b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,36 @@
|
|||||||
|
<?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"
|
||||||
|
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
|
||||||
|
x:Class="LivreLand.View.ContentViews.AlphabetVerticalMenuView">
|
||||||
|
|
||||||
|
<VerticalStackLayout Margin="0,0,5,0">
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="A"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="B"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="C"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="D"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="E"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="F"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="G"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="H"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="I"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="J"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="K"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="L"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="M"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="N"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="O"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="P"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="Q"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="R"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="S"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="T"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="U"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="V"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="W"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="X"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="Y"/>
|
||||||
|
<contentView:LetterVerticalMenuView ButtonLetter="Z"/>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class AlphabetVerticalMenuView : ContentView
|
||||||
|
{
|
||||||
|
public AlphabetVerticalMenuView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
<?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="LivreLand.View.ContentViews.LetterVerticalMenuView"
|
||||||
|
x:Name="this">
|
||||||
|
|
||||||
|
<Grid BindingContext="{x:Reference this}">
|
||||||
|
<Label x:Name="letterText"
|
||||||
|
Text="{Binding ButtonLetter}"
|
||||||
|
TextColor="{StaticResource Blue100Accent}"/>
|
||||||
|
<Grid.GestureRecognizers>
|
||||||
|
<TapGestureRecognizer Tapped="OnLetterTapped"/>
|
||||||
|
</Grid.GestureRecognizers>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentView>
|
@ -0,0 +1,24 @@
|
|||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class LetterVerticalMenuView : ContentView
|
||||||
|
{
|
||||||
|
public static readonly BindableProperty ButtonLetterProperty = BindableProperty.Create(nameof(ButtonLetter), typeof(string), typeof(LetterVerticalMenuView), string.Empty);
|
||||||
|
public string ButtonLetter
|
||||||
|
{
|
||||||
|
get => (string)GetValue(LetterVerticalMenuView.ButtonLetterProperty);
|
||||||
|
set => SetValue(LetterVerticalMenuView.ButtonLetterProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LetterVerticalMenuView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnLetterTapped(object sender, TappedEventArgs e)
|
||||||
|
{
|
||||||
|
var plusPopup = new PopupLetterView(letterText.Text);
|
||||||
|
App.Current.MainPage.ShowPopup(plusPopup);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||||
|
x:Class="LivreLand.View.ContentViews.PopupLetterView">
|
||||||
|
|
||||||
|
<Grid BackgroundColor="{StaticResource HeaderGray}">
|
||||||
|
<Label x:Name="letterText"
|
||||||
|
Style="{StaticResource HomeTitle}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</toolkit:Popup>
|
@ -0,0 +1,12 @@
|
|||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
|
namespace LivreLand.View.ContentViews;
|
||||||
|
|
||||||
|
public partial class PopupLetterView : Popup
|
||||||
|
{
|
||||||
|
public PopupLetterView(string letter)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
letterText.Text = letter;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue