예제 #1
0
 /// <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);
 }
예제 #2
0
 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);
 }