﻿<?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 - Open and Close Windows via code</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Open-and-Close-Windows-via-code/</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>Open and Close Windows via code</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Open-and-Close-Windows-via-code/</link><pubDate>Tue, 28 Sep 2010 12:45:38 GMT</pubDate><dc:creator>jimmyps</dc:creator><category>ClientUI</category><category>UXWindow</category><category>Code</category><description>&lt;p&gt;Max, did you setup the buttons in the DesktopDock using datasource?&lt;/p&gt;It'll be great if you can send a sample that replicate the issue since closing the window using our desktop template seems to work just fine.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jimmy&lt;br /&gt;</description></item><item><title>Open and Close Windows via code</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Open-and-Close-Windows-via-code/</link><pubDate>Mon, 27 Sep 2010 06:01:31 GMT</pubDate><dc:creator>niven</dc:creator><category>ClientUI</category><category>UXWindow</category><category>Code</category><description>&lt;p&gt;Hi Maxwell,&lt;/p&gt;
&lt;p&gt;Have you include the namespace?&lt;/p&gt;
&lt;p&gt;Please kindly explain me which navigation did you open? Is it from template or UXNavigationWindow or UXNavigationBar?&lt;/p&gt;
&lt;p&gt;Have you set the IsClientVisible="True"? or if you want from server side, please use the code below.&lt;/p&gt;&lt;pre&gt;uxWindow1.Show();
&lt;/pre&gt;

&lt;p&gt;Hope this can help.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya&lt;/p&gt;</description></item><item><title>Open and Close Windows via code</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Open-and-Close-Windows-via-code/</link><pubDate>Fri, 24 Sep 2010 10:08:36 GMT</pubDate><dc:creator>prpmlp</dc:creator><category>ClientUI</category><category>UXWindow</category><category>Code</category><description>&lt;p&gt;Please see the comment above. I had already tried uXWindow1.Close(); and still got the exception&lt;/p&gt;
&lt;p&gt;The second problem is straight forward. &lt;/p&gt;
&lt;p&gt;1) I have created a UXPage.&lt;/p&gt;
&lt;p&gt;2) I have created a Naviagtion Component&lt;/p&gt;
&lt;p&gt;I can open the window by clicking on the navigation (FishExe) control but how do I open the window via code.&lt;/p&gt;</description></item><item><title>Open and Close Windows via code</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Open-and-Close-Windows-via-code/</link><pubDate>Fri, 24 Sep 2010 06:40:27 GMT</pubDate><dc:creator>niven</dc:creator><category>ClientUI</category><category>UXWindow</category><category>Code</category><description>&lt;p&gt;Hi Maxwell,&lt;/p&gt;
&lt;p&gt;Please try the following code&lt;/p&gt;&lt;pre&gt;uXWindow1.Close();&lt;/pre&gt;

&lt;p&gt;Could you please provide further information regarding the 2nd problem?&lt;/p&gt;
&lt;p&gt;We are aware of your needs on the documentation file, we are still processing the documentation for the better output.&lt;/p&gt;
&lt;p&gt;Thank you for your concern and patience.&lt;/p&gt;
&lt;p&gt;Have a nice weekend.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya&lt;/p&gt;</description></item><item><title>Open and Close Windows via code</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Open-and-Close-Windows-via-code/</link><pubDate>Thu, 23 Sep 2010 09:29:06 GMT</pubDate><dc:creator>prpmlp</dc:creator><category>ClientUI</category><category>UXWindow</category><category>Code</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to Close a window via code. In the code behine of the UXPage I have the following code:&lt;/p&gt;&lt;pre&gt;&lt;pre&gt;var window =(UXWindow) this.GetWindowHost();
window.Hide();&lt;/pre&gt;&lt;/pre&gt;
&lt;p&gt;This however throws an exception&lt;/p&gt;
&lt;p&gt;((System.Exception)(ex.InnerException)).StackTrace&lt;/p&gt;
&lt;p&gt;   at Intersoft.Client.UI.Aqua.UXDock.UXDock.GetContainerFromIndex(Int32 index)&lt;br&gt;&lt;/br&gt;   at Intersoft.Client.UI.Aqua.UXDock.UXDesktopDock.FindButton(Object targetContext, SearchFlags searchButtonFlags)&lt;br&gt;&lt;/br&gt;   at Intersoft.Client.UI.Aqua.UXDock.UXDesktopDock.(Object sender, WindowEventArgs e)&lt;/p&gt;
&lt;p&gt;I have tried using window.Close(); but still throws the exception. If I put a catch around this it. The error is not thrown and the window closes.&lt;/p&gt;
&lt;p&gt;The 2nd problem is trying to programatically open a window without clicking of the navigation docking component.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please could you also update when help file will be available&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>