コード例 #1
0
 internal void OnLayoutElementRemoved(LayoutElement element)
 {
     if (element.Descendents().OfType <LayoutContent>().Any(c => c == LastFocusedDocument))
     {
         LastFocusedDocument = null;
     }
     if (element.Descendents().OfType <LayoutContent>().Any(c => c == ActiveContent))
     {
         ActiveContent = null;
     }
     if (ElementRemoved != null)
     {
         ElementRemoved(this, new LayoutElementEventArgs(element));
     }
 }
コード例 #2
0
 internal void OnLayoutElementRemoved(LayoutElement element)
 {
     if (element.Descendents().OfType <LayoutContent>().Any <LayoutContent>((LayoutContent c) => c == this.LastFocusedDocument))
     {
         this.LastFocusedDocument = null;
     }
     if (element.Descendents().OfType <LayoutContent>().Any <LayoutContent>((LayoutContent c) => c == this.ActiveContent))
     {
         this.ActiveContent = null;
     }
     if (this.ElementRemoved != null)
     {
         this.ElementRemoved(this, new LayoutElementEventArgs(element));
     }
 }
コード例 #3
0
ファイル: LayoutRoot.cs プロジェクト: Alexz18z35z/Gibbo2D
 internal void OnLayoutElementRemoved(LayoutElement element)
 {
     if (element.Descendents().OfType<LayoutContent>().Any(c => c == LastFocusedDocument))
         LastFocusedDocument = null;
     if (element.Descendents().OfType<LayoutContent>().Any(c => c == ActiveContent))
         ActiveContent = null;
     if (ElementRemoved != null)
         ElementRemoved(this, new LayoutElementEventArgs(element));
 }