popup suivre un jeu et popup pour le chagement sur info de l'utilisateur (reste plus qu'à la mettre sur les boutons)
parent
de4f4e25ad
commit
9118f7a5ab
@ -1,17 +0,0 @@
|
|||||||
using CommunityToolkit.Maui.Views;
|
|
||||||
|
|
||||||
namespace Stim;
|
|
||||||
|
|
||||||
public partial class AddGameMessagePopup : Popup
|
|
||||||
{
|
|
||||||
public AddGameMessagePopup(string message)
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
placeholder.Text = message;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CloseButton(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Close();
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,14 @@
|
|||||||
|
<?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="Stim.EntryPopup"
|
||||||
|
CanBeDismissedByTappingOutsideOfPopup="False">
|
||||||
|
<VerticalStackLayout>
|
||||||
|
<Grid ColumnDefinitions="*" RowDefinitions="auto, auto, auto">
|
||||||
|
<Label x:Name="LabelTxt"/>
|
||||||
|
<Entry Grid.Row="1"/>
|
||||||
|
<Button Grid.Row="2" x:Name="Entrytxt" Text="Valider" HorizontalOptions="Center" VerticalOptions="End" Background="{StaticResource Transparent}" Clicked="CloseButton"/>
|
||||||
|
</Grid>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</toolkit:Popup>
|
@ -0,0 +1,17 @@
|
|||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
|
namespace Stim;
|
||||||
|
|
||||||
|
public partial class EntryPopup : Popup
|
||||||
|
{
|
||||||
|
public EntryPopup(string fieldName)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
LabelTxt.Text = fieldName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CloseButton(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(Entrytxt.Text)) Close(Entrytxt.Text);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
using CommunityToolkit.Maui.Views;
|
||||||
|
|
||||||
|
namespace Stim;
|
||||||
|
|
||||||
|
public partial class MessagePopup : Popup
|
||||||
|
{
|
||||||
|
public MessagePopup(string message)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
placeholder.Text = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CloseButton(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue