예제 #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
 public LayoutElementEventArgs(LayoutElement element)
 {
     Element = element;
 }
예제 #3
0
 internal void OnLayoutElementAdded(LayoutElement element)
 {
     if (ElementAdded != null)
         ElementAdded(this, new LayoutElementEventArgs(element));
 }
 public LayoutElementEventArgs(LayoutElement element)
 {
     Element = element;
 }