diff --git a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml
index 67978307..6b57fc18 100644
--- a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml
+++ b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml
@@ -6,7 +6,14 @@
xmlns:urho="clr-namespace:Urho.Forms;assembly=UrhoSharp.Forms"
x:Class="AideDeJeu.Views.DicesPage"
Appearing="ContentPage_Appearing"
- Disappearing="ContentPage_Disappearing" Title="Dés" >
+ Disappearing="ContentPage_Disappearing"
+ Title="Dés"
+ Shell.FlyoutBehavior="Disabled"
+ Visual="Material">
+
@@ -71,7 +78,10 @@
-->
-
+
+
+
+
diff --git a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs
index 307ab89b..d3ca43ce 100644
--- a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs
+++ b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs
@@ -92,6 +92,7 @@ namespace AideDeJeu.Views
try
{
var ao = new Urho.ApplicationOptions(assetsFolder: null);
+ HelloWorldUrhoSurface = new Urho.Forms.UrhoSurface();
charts = await HelloWorldUrhoSurface.Show(ao);
}
catch(Exception ex)
@@ -116,7 +117,7 @@ namespace AideDeJeu.Views
charts?.Bars.ForEach(b => b.SetValueWithAnimation((new Dice()).Roll("3d6", new RandomDieRoller()).Value));
}
- private void Button_Clicked(object sender, EventArgs e)
+ private void Refresh_Clicked(object sender, EventArgs e)
{
charts?.Bars.ForEach(b => b.SetValueWithAnimation((new Dice()).Roll("3d6", new RandomDieRoller()).Value));
}
@@ -133,6 +134,11 @@ namespace AideDeJeu.Views
}
catch { }
}
+
+ private void Menu_Clicked(object sender, EventArgs e)
+ {
+ Shell.Current.GoToAsync("//home", true);
+ }
}
public class HelloWorld : Urho.Application
{