Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto dev
  • Loading branch information
beto-rodriguez committed Oct 27, 2023
2 parents 78e2865 + d521140 commit 085f35a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions samples/BlazorSample/Pages/Hello.razor
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
<p class="text-center text-muted">
LiveCharts provides controls for any UI framework (console and server-side is also supported). <br />
<small class="text-center text-muted">
The minimum requirement for .Net framework is .Net 4.6.2 and is compatible with is compatible
with .NET standard 2.0.
The minimum requirement for .Net framework is .Net 4.6.2 and is compatible with .NET standard 2.0.
</small>
</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public MotionCanvas()
skiaElement.PaintSurface += OnCanvasViewPaintSurface;
CanvasCore.Invalidated += OnCanvasCoreInvalidated;
Unloaded += MotionCanvas_Unloaded;
Loaded += MotionCanvas_Loaded;
}

/// <summary>
Expand Down Expand Up @@ -169,6 +170,11 @@ private static void PaintTasksChanged(BindableObject bindable, object oldValue,
motionCanvas.CanvasCore.SetPaintTasks(tasks);
}

private void MotionCanvas_Loaded(object? sender, EventArgs e)
{
_isLoaded = true;
}

private void MotionCanvas_Unloaded(object? sender, EventArgs e)
{
_isLoaded = false;
Expand Down

0 comments on commit 085f35a

Please sign in to comment.