Dim instance As UXWindow Dim value As StartupLocation instance.WindowStartupLocation = value value = instance.WindowStartupLocation
You can set a window to be automatically positioned to certain location at startup by setting its WindowStartupLocation property. UXWindow exposes three values that you can apply which is explained below:
When the Auto mode is used, the desktop manager first checks for the Left and Top property of the window. If an exact location is not specified, the desktop manager automatically calculates the position from the last shown window and position the window cascaded against the previous position. The cascading space can be customized through CascadingSpace property in UXDesktop.
<Grid x:Name="LayoutRoot"> <Intersoft:UXDesktop> <local:HomeWindow WindowName="wndHome" IsActive="True" WindowStartupLocation="CenterScreen"/> </Intersoft:UXDesktop> </Grid>
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2