popup
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
bebbd56ea0
commit
de4f4e25ad
@ -0,0 +1,13 @@
|
|||||||
|
<?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.AddGameMessagePopup"
|
||||||
|
CanBeDismissedByTappingOutsideOfPopup ="False">
|
||||||
|
<VerticalStackLayout Background="{StaticResource Transparent}">
|
||||||
|
<Grid RowDefinitions="auto, *" ColumnDefinitions="*">
|
||||||
|
<Label x:Name="placeholder" Text="" HorizontalOptions="Center"/>
|
||||||
|
<Button Grid.Row="1" Text="Fermer" 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 AddGameMessagePopup : Popup
|
||||||
|
{
|
||||||
|
public AddGameMessagePopup(string message)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
placeholder.Text = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CloseButton(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue