﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - UXDialogBox maximizing</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-maximizing/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>UXDialogBox maximizing</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-maximizing/</link><pubDate>Tue, 30 Nov 2010 23:07:58 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>UXDialogBox maximizing</category><description>&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;Here is a snippet on how to implement Maximize executed on the Settings.xaml which is a UXDialogBox:&lt;/p&gt;&lt;pre&gt;public Settings()&lt;br /&gt;{&lt;br /&gt;    InitializeComponent();&lt;br /&gt;&lt;br /&gt;    // Create a CommandBinding and attaching an Executed and CanExecute handler&lt;br /&gt;    CommandBinding maximizeCommandBinding = new CommandBinding(&lt;br /&gt;        WindowCommands.Maximize,&lt;br /&gt;        MaximizeExecuted);&lt;br /&gt;&lt;br /&gt;    // Create the CommandBindingCollection to hold the command binding&lt;br /&gt;    CommandBindingCollection bindingCollection = new CommandBindingCollection();&lt;br /&gt;    bindingCollection.Add(maximizeCommandBinding);&lt;br /&gt;&lt;br /&gt;    // Set the binding collection to the layout root&lt;br /&gt;    CommandManager.SetCommandBindings(this, bindingCollection);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void MaximizeExecuted(object sender, ExecutedRoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;    this.Height = ((UXPage)this.GetRootVisual()).ActualHeight;&lt;br /&gt;    this.Width = ((UXPage)this.GetRootVisual()).ActualWidth;&lt;br /&gt;    this.Left = 0;&lt;br /&gt;    this.Top = 0;&lt;br /&gt;&lt;br /&gt;    this.WindowState = Intersoft.Client.UI.Aqua.UXDesktop.WindowState.Maximized;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;</description></item><item><title>UXDialogBox maximizing</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-maximizing/</link><pubDate>Mon, 29 Nov 2010 06:01:49 GMT</pubDate><dc:creator>vers</dc:creator><category>UXDialogBox maximizing</category><description>&lt;p&gt;I also tried to put new UXWindow element into UXDesktop, but there was no change. Here is XAML:&lt;/p&gt;&lt;pre&gt;&amp;lt;Intersoft:UXPage x:Class="ClientUIApplication1.MainPage" &lt;br /&gt;	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&lt;br /&gt;	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" &lt;br /&gt;	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"&lt;br /&gt;	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"&lt;br /&gt;	mc:Ignorable="d"&lt;br /&gt;	xmlns:Intersoft="http://intersoft.clientui.com/schemas"&lt;br /&gt;    xmlns:my="clr-namespace:ClientUIApplication1"&lt;br /&gt;	Title="MainPage Page"&lt;br /&gt;	d:DesignWidth="640" d:DesignHeight="480"&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;Intersoft:UXDesktop&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:UXWindow Header="UXWindow Title" Height="157" Width="336" IsClientVisible="True" CanMaximize="True"&amp;gt;&lt;br /&gt;            &amp;lt;Grid /&amp;gt;&lt;br /&gt;        &amp;lt;/Intersoft:UXWindow&amp;gt;&lt;br /&gt;    &amp;lt;/Intersoft:UXDesktop&amp;gt;&lt;br /&gt;&amp;lt;/Intersoft:UXPage&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>UXDialogBox maximizing</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDialogBox-maximizing/</link><pubDate>Mon, 29 Nov 2010 04:56:27 GMT</pubDate><dc:creator>vers</dc:creator><category>UXDialogBox maximizing</category><description>&lt;p&gt;I've performed following operations:&lt;/p&gt;
&lt;p&gt;1) created "Intersoft ClientUI application" project for Silverlight 4 in VS 2010;&lt;/p&gt;
&lt;p&gt;2) added button to MainPage;&lt;/p&gt;
&lt;p&gt;3) created "Intersoft UXDialogBox" from VS template and set "CanMaximize" to True;&lt;/p&gt;
&lt;p&gt;4) added button's click handler:&lt;/p&gt;&lt;pre&gt;UXDialogBox1 u = new UXDialogBox1();&lt;br /&gt;u.ShowDialog(null, null);&lt;/pre&gt;
&lt;p&gt;5) started application.&lt;/p&gt;
&lt;p&gt;Dialog window with maximize button appears on button click, but nothing happens on maximize button click.&lt;/p&gt;
&lt;p&gt;What I did wrong?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>