Gets the WindowMode.
void Sample_Frame_WindowMode()
{
Application app = MyReflection.ActiveApplication;
IFrame frame = (IFrame)app.GetObject("Frame");
if (frame.WindowMode == WindowModes.Browser ||
frame.WindowMode == WindowModes.Ribbon)
Console.Write("There are " + frame.ViewCount + " views open within " +
"this frame instance.\n");
else
Console.Write("Since this frame is in \"classic\" mode, there cannot be more " +
"than one session view open in it.");
}