To get the state information about the window containing the current page view:
var ThisView = GetView();var WndState = ThisView.GetWindowState();