Skip to content

Commit

Permalink
fixed memory leak in visual elements sample
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Sep 5, 2022
1 parent c5505f5 commit 7230ae9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/ViewModelsSamples/General/VisualElements/ViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using CommunityToolkit.Mvvm.ComponentModel;
using LiveChartsCore;
using LiveChartsCore.Drawing;
using LiveChartsCore.Kernel;
Expand All @@ -11,6 +12,7 @@

namespace ViewModelsSamples.General.VisualElements;

[ObservableObject]
public partial class ViewModel
{
public IEnumerable<ChartElement<SkiaSharpDrawingContext>> VisualElements { get; set; } = new List<ChartElement<SkiaSharpDrawingContext>>
Expand Down

0 comments on commit 7230ae9

Please sign in to comment.