public static void ActivateContent(this IMainWindow window, string winid) { foreach (var cnt in window.GetContents()) { if (cnt.WinId == winid) { window.ActivateContent(cnt); } } }