diff --git a/App/RobobinApp/Platforms/Windows/Package.appxmanifest b/App/RobobinApp/Platforms/Windows/Package.appxmanifest index 04beb1a6b6cc4810487b08cc77cd771479083e8f..9dd8137daefc7b7ec6c3a028e81f811a9b0bb135 100644 --- a/App/RobobinApp/Platforms/Windows/Package.appxmanifest +++ b/App/RobobinApp/Platforms/Windows/Package.appxmanifest @@ -6,7 +6,7 @@ xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap rescap"> - <Identity Name="maui-package-name-placeholder" Publisher="CN=paulw" Version="0.0.7.0" /> + <Identity Name="maui-package-name-placeholder" Publisher="CN=paulw" Version="0.0.8.0" /> <mp:PhoneIdentity PhoneProductId="8646FF59-A3E1-4276-A8EA-36FBC95CCEAD" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> diff --git a/App/RobobinApp/Views/MainPage_Android.xaml.cs b/App/RobobinApp/Views/MainPage_Android.xaml.cs index f7059f4065ca2314d5558c12d3d66f1efee7a807..cedfdc3c0458358b39e6cfb4407c12a9ba87749b 100644 --- a/App/RobobinApp/Views/MainPage_Android.xaml.cs +++ b/App/RobobinApp/Views/MainPage_Android.xaml.cs @@ -79,6 +79,20 @@ namespace RobobinApp.Views { var drawable = (GraphicsDrawable)Resources["drawable"]; drawable.SetGraph(viewModel.Graph); + + GraphicsView.Invalidate(); // Redraw the GraphicsView + Debug.WriteLine("Graph updated and redrawn."); + } + + } + else if (e.PropertyName == nameof(MainPageViewModel.Location)) + { + if (BindingContext is MainPageViewModel viewModel) + { + var drawable = (GraphicsDrawable)Resources["drawable"]; + Debug.WriteLine($"VM Location {viewModel.Location}"); + drawable.SetLocation(viewModel.Location); + drawable.SetGraph(viewModel.Graph); GraphicsView.Invalidate(); // Redraw the GraphicsView Debug.WriteLine("Graph updated and redrawn."); }