Intersoft ClientUI Documentation
CascadingSpace Property
Example 



Specifies the item spacing for cascading window arrangement.
Syntax
<CategoryAttribute("Common Properties")>
Public Property CascadingSpace As Double
Dim instance As UXDesktop
Dim value As Double
 
instance.CascadingSpace = value
 
value = instance.CascadingSpace
[CategoryAttribute("Common Properties")]
public double CascadingSpace {get; set;}
[CategoryAttribute("Common Properties")]
public:
property double CascadingSpace {
   double get();
   void set (    double value);
}
Remarks

When the WindowStartupLocation property in UXWindow set to Auto, 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.

Example
The following example shows how to customize the default space between windows through the CascadingSpace property.
<Intersoft:UXDesktop Name="desktops" CascadingSpace="150">
    <Intersoft:UXWindow x:Name="wnd1" Header="UXWindow1 Title" IsActive="True" WindowStartupLocation="Auto">
        <Grid>
            <TextBlock Text="Content for UXWindow1"/>
        </Grid>
    </Intersoft:UXWindow>
    
    <Intersoft:UXWindow x:Name="wnd2" Header="UXWindow2 Title" IsClientVisible="True" WindowStartupLocation="Auto">
        <Grid>
            <TextBlock Text="Content for UXWindow2"/>
        </Grid>
    </Intersoft:UXWindow>
</Intersoft:UXDesktop>
Requirements

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

See Also

Reference

UXDesktop Class
UXDesktop Members
Window and Dialog Boxes Overview

Send Feedback