Exemple #1
0
 /// <summary>
 /// Detaches the element from the host. Override <see cref="OnDetach"/>
 /// </summary>
 public void Detach()
 {
     if (IsAttached)
     {
         IsAttached = false;
         RenderCore.Detach();
         OnDetach();
         OnDetached?.Invoke(this, EventArgs.Empty);
     }
 }
Exemple #2
0
 /// <summary>
 /// Detaches this instance.
 /// </summary>
 public void Detach()
 {
     if (IsAttached)
     {
         IsAttached = false;
         RenderCore.Detach();
         Disposer.RemoveAndDispose(ref bitmapCache);
         OnDetach();
         OnDetached?.Invoke(this, EventArgs.Empty);
     }
 }
 /// <summary>
 /// Detaches the element from the host. Override <see cref="OnDetach"/>
 /// </summary>
 public void Detach()
 {
     if (IsAttached)
     {
         IsAttached = false;
         InvalidateSceneGraph();
         RenderCore.Detach();
         OnDetach();
         DisposeAndClear();
         OnDetached?.Invoke(this, EventArgs.Empty);
     }
 }
 /// <summary>
 /// Called when [detach].
 /// </summary>
 protected override void OnDetach()
 {
     RenderCore.Detach();
     base.OnDetach();
 }