/// <summary> /// This method is called when the view is disappearing. /// </summary> /// <param name="sender"> The sender. </param> /// <param name="e"> The e. </param> protected override void ViewIsDisappearing(object sender, EventArgs e) { CanvasSessionHelper.ClearShapes(CanvasViewKey); }
protected void SetShapes(ICollection <CelestialDrawModel> shapes, ObjectCollectionLayout objectCollectionLayout) { CanvasSessionHelper.SetCanvasShapes(CanvasViewKey, shapes.ToList()); CanvasSessionHelper.SetCanvasObjectCollectionLayout(CanvasViewKey, objectCollectionLayout); Shapes.SetOnApplicationThread(shapes, _shapesCollectionLock, RaisePropertyChanged, nameof(Shapes), null); }