コード例 #1
0
 /// <summary>
 /// Gets selectors in the frame and nested frames.
 /// </summary>
 /// <param name="selectorTable">The table of selectors to update.</param>
 public virtual void CollectSelectors(Dictionary <string, IFocusFrameSelectorList> selectorTable)
 {
     foreach (IFocusFrame Item in Items)
     {
         if (Item is IFocusNodeFrame AsNodeFrame)
         {
             AsNodeFrame.CollectSelectors(selectorTable);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets preferred frames to receive the focus when the source code is changed.
 /// </summary>
 /// <param name="firstPreferredFrame">The first preferred frame found.</param>
 /// <param name="lastPreferredFrame">The last preferred frame found.</param>
 public virtual void GetPreferredFrame(ref IFocusNodeFrame firstPreferredFrame, ref IFocusNodeFrame lastPreferredFrame)
 {
     foreach (IFocusFrame Item in Items)
     {
         if (Item is IFocusNodeFrame AsNodeFrame)
         {
             AsNodeFrame.GetPreferredFrame(ref firstPreferredFrame, ref lastPreferredFrame);
         }
     }
 }