iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi!
Do you have an idea about how can set the startUp Position of a window:
The default positions are center screen center owner and auto like in the "DefaultPositon.png" joined.
I want for example the 3 windows to be every time positioned Like in "LikeThis.png ".
And on moving one of the windows the 2 others will always stick in that position.
Can anyone help me please?
Waiting forward for your answer
Best Regards,
KAROUI Haythem
WindowStartupLocation property gets or sets a value that indicates how the window should be positioned during startup. 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.
The best approach for your scenario is to use the Auto as the WindowStartupLocation and specify the exact location by providing the Left and Top property of UXWindow.
Example:
<Intersoft:UXWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:Intersoft="http://intersoft.clientui.com/schemas" x:Class="Intersoft.ClientUI.Samples.WindowControls.Views.UXDesktopDock.Home" Header="My ClientUI Silverlight Desktop" IsClientVisible="True" WindowStartupLocation="Auto" CanMaximize="False" CanResize="False" IsActive="True" Height="320" Width="500" Left="50" Top="300" d:DesignWidth="640" d:DesignHeight="480" Icon="/Intersoft.ClientUI.Samples.WindowControls;component/Images/userdesktop.png"> </Intersoft:UXWindow>
For more detail information, please check the detail information in the documentation.
This should help.
User interface applications can be generally categorized into two patterns at the high level, which are Single Document Interface (SDI) and Multiple Document Interface (MDI).
ClientUI implements MDI pattern through a solid framework along with a host of desktop and windowing controls. The UXDesktop and UXWindow are two fundamental building blocks in implementing MDI presentation pattern. The user experience of UXWindow is made by simulating the industrial-standard window control.
When you resize the window “Favorites” in LikeThis.png, the other windows are not stick on its border. Such scenario is not the default behavior of windowing control. However, you still can implement the scenario by adding your own code that will calculate the Left and Top property of the windows. And then set the new Left and Top property of each window when user moves/resize one of the windows.
Please feel free to let us know your response.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname