How to Change the IsMaximized Setting at Runtime
For example, you code a frame with a toggle field that, when the user checks it, sets the IsMaximized attribute to TRUE. The default setting for this toggle field is FALSE. When the frame is run, it opens to the size based on the values specified in the FrameSource. When the user checks the toggle field, the frame is maximized. When the user clears the toggle field, the frame reverts back to its normal unmaximized state.
The default setting for the
FrameSource.IsMaximized (see
IsMaximized Attribute) is then set to TRUE. When the frame is run, it starts up maximized. If the user clears the toggle field, the frame reverts back to its specified normal size. When the frame’s toggle field is checked, the frame is maximized.