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
I've performed following operations:
1) created "Intersoft ClientUI application" project for Silverlight 4 in VS 2010;
2) added button to MainPage;
3) created "Intersoft UXDialogBox" from VS template and set "CanMaximize" to True;
4) added button's click handler:
UXDialogBox1 u = new UXDialogBox1();u.ShowDialog(null, null);
5) started application.
Dialog window with maximize button appears on button click, but nothing happens on maximize button click.
What I did wrong?
I also tried to put new UXWindow element into UXDesktop, but there was no change. Here is XAML:
<Intersoft:UXPage x:Class="ClientUIApplication1.MainPage" 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" xmlns:my="clr-namespace:ClientUIApplication1" Title="MainPage Page" d:DesignWidth="640" d:DesignHeight="480"> <Intersoft:UXDesktop> <Intersoft:UXWindow Header="UXWindow Title" Height="157" Width="336" IsClientVisible="True" CanMaximize="True"> <Grid /> </Intersoft:UXWindow> </Intersoft:UXDesktop></Intersoft:UXPage>
You could use the Intersoft ClientUI Desktop Template to see how the maximize works. In your case, you will need to implement the Maximize executed event handler to handle the maximize process yourself.
Here is a snippet on how to implement Maximize executed on the Settings.xaml which is a UXDialogBox:
public Settings(){ InitializeComponent(); // Create a CommandBinding and attaching an Executed and CanExecute handler CommandBinding maximizeCommandBinding = new CommandBinding( WindowCommands.Maximize, MaximizeExecuted); // Create the CommandBindingCollection to hold the command binding CommandBindingCollection bindingCollection = new CommandBindingCollection(); bindingCollection.Add(maximizeCommandBinding); // Set the binding collection to the layout root CommandManager.SetCommandBindings(this, bindingCollection);}private void MaximizeExecuted(object sender, ExecutedRoutedEventArgs e){ this.Height = ((UXPage)this.GetRootVisual()).ActualHeight; this.Width = ((UXPage)this.GetRootVisual()).ActualWidth; this.Left = 0; this.Top = 0; this.WindowState = Intersoft.Client.UI.Aqua.UXDesktop.WindowState.Maximized;}
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