Skip to content
Snippets Groups Projects
Commit a4ae0a89 authored by Paul-Winpenny's avatar Paul-Winpenny
Browse files

Fixed the mobile version not updating position.

parent a1fa64eb
No related branches found
No related tags found
No related merge requests found
......@@ -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"/>
......
......@@ -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.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment