diff --git a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml
index 6b57fc18..ac0b4b98 100644
--- a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml
+++ b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml
@@ -82,7 +82,10 @@
-
+
+
+
+
\ No newline at end of file
diff --git a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs
index 0c694c8a..9469ecbf 100644
--- a/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs
+++ b/AideDeJeu/AideDeJeu/Views/DicesPage.xaml.cs
@@ -91,8 +91,13 @@ namespace AideDeJeu.Views
{
try
{
- var ao = new Urho.ApplicationOptions(assetsFolder: null);
- charts = await HelloWorldUrhoSurface.Show(ao);
+ //if (charts == null)
+ //{
+ var ao = new Urho.ApplicationOptions(assetsFolder: null);
+ var urhoSurface = new Urho.Forms.UrhoSurface() { VerticalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Xamarin.Forms.Color.White };
+ RootSurface.Children.Add(urhoSurface);
+ charts = await urhoSurface.Show(ao);
+ //}
}
catch(Exception ex)
{
@@ -132,6 +137,10 @@ namespace AideDeJeu.Views
}
}
catch { }
+ RootSurface.Children.Clear();
+ //charts?.DoStop();
+ ////charts?.Dispose();
+ //charts = null;
}
private void Menu_Clicked(object sender, EventArgs e)
diff --git a/AideDeJeu/AideDeJeu/Views/UrhoTest.cs b/AideDeJeu/AideDeJeu/Views/UrhoTest.cs
index fa179b00..3bf758ad 100644
--- a/AideDeJeu/AideDeJeu/Views/UrhoTest.cs
+++ b/AideDeJeu/AideDeJeu/Views/UrhoTest.cs
@@ -26,6 +26,11 @@ namespace AideDeJeu.Views
Viewport vp;
Renderer renderer;
+ public void DoStop()
+ {
+ base.Exit(); //.Stop();
+ }
+
public Bar SelectedBar { get; private set; }
public IEnumerable Bars => bars;