/// <summary> /// Search from root tool, through all children (depth first), /// for a frame tool operating on <paramref name="frame"/>. /// </summary> /// <param name="frame">Frame to search frame tool for.</param> /// <returns>First frame tool that matches <paramref name="frame"/>.</returns> public static FrameTool FindActive(IFrame frame) { return(ToolManager.FindActive <FrameTool>(frameTool => frameTool.Frame == frame)); }