﻿<?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 - How can I open UXWindow using UXStackItem (declarative) ?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-can-I-open-UXWindow-using-UXStackItem-declarative-/</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>How can I open UXWindow using UXStackItem (declarative) ?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-can-I-open-UXWindow-using-UXStackItem-declarative-/</link><pubDate>Wed, 20 Jul 2011 08:49:59 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;
    &lt;p&gt;1. why NavigateUri propetry&amp;nbsp;not working ?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;UXStackItem implements both ICommandSource and INavigationSource interface to support commanding and navigation, such as shown in the following example.&lt;/p&gt;
&lt;pre&gt;&amp;lt;Intersoft:UXStackButton Content="Button" HorizontalAlignment="Center" Height="64" VerticalAlignment="Bottom" Width="64" Icon="ShareLarge.png" StackMode="MenuStyle"&amp;gt;
    &amp;lt;Intersoft:UXStackItem Icon="twitter.png" Text="Twitter" NavigateUri="www.twitter.com" TargetName="_blank"/&amp;gt;
    &amp;lt;Intersoft:UXStackItem Icon="facebook.png" Text="Facebook" NavigateUri="www.facebook.com" TargetName="_blank"/&amp;gt;
    &amp;lt;Intersoft:UXSeparator&amp;gt;&amp;lt;/Intersoft:UXSeparator&amp;gt;
    &amp;lt;Intersoft:UXStackItem Icon="email.png" Text="Forward" Command="{Binding ForwardCommand}"/&amp;gt;
&amp;lt;/Intersoft:UXStackButton&amp;gt;&lt;/pre&gt;
&lt;p&gt;You can do commanding through Command, CommandTarget and CommandParameter properties (just like you did) and navigation using NavigateUri and TargetName properties.&lt;/p&gt;
&lt;blockquote&gt;
    &lt;p&gt;2. why I have to set IsEnable=true (it should be default value)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I will consult this with the ClientUI development team. I’ll get back to you as soon as possible.&lt;/p&gt;</description></item><item><title>How can I open UXWindow using UXStackItem (declarative) ?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-can-I-open-UXWindow-using-UXStackItem-declarative-/</link><pubDate>Thu, 30 Jun 2011 05:21:55 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;It's the same solution as I've written in my post&lt;/p&gt;
&lt;p&gt;Could you give me answers on:&lt;/p&gt;
&lt;p&gt;1. why NavigateUri propetry not working ?&lt;/p&gt;
&lt;p&gt;2. why I have to set IsEnable=true (it should be default value)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Andrzej&lt;/p&gt;</description></item><item><title>How can I open UXWindow using UXStackItem (declarative) ?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-can-I-open-UXWindow-using-UXStackItem-declarative-/</link><pubDate>Thu, 30 Jun 2011 04:56:23 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Sorry for the late respond.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;UXStackItem implements both ICommandSource and INavigationSource that allows both commanding and navigation using UXStackItem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In your scenario, clicking the UXStackItem will be used to launch an application within the UXDesktop. So it would be best to use commanding instead of navigation. The commanding can be done through Command, CommandTarget, and CommandParameter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;So by modifying the UXStackItem from the following:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;Intersoft:UXStackItem Text="Development Roadmap" Icon="/Assets/Files/doc.png"/&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;into the following will be able to have the UXStackItem to open UXWindow as your required scenario.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;Intersoft:UXStackItem Text="Development Roadmap" Icon="/Assets/Files/doc.png"
                        Command="Intersoft:WindowCommands.LaunchApplication"
                        CommandTarget="{Binding ElementName=uxDesktop}"
                        IsEnabled="True"&amp;gt;
    &amp;lt;Intersoft:UXStackItem.CommandParameter&amp;gt;
        &amp;lt;Intersoft:WindowOptions Uri="/Views/Notepad.xaml" ForceSingleInstance="True" WindowName="wndNotepad"/&amp;gt;
    &amp;lt;/Intersoft:UXStackItem.CommandParameter&amp;gt;
&amp;lt;/Intersoft:UXStackItem&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How can I open UXWindow using UXStackItem (declarative) ?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-can-I-open-UXWindow-using-UXStackItem-declarative-/</link><pubDate>Mon, 27 Jun 2011 04:58:24 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;Maybe I forgot something ? ... but How can set xaml to open UXWindow using UXStackItem ?&lt;/p&gt;
&lt;p&gt;I've tried :&lt;/p&gt;
&lt;p&gt;1. NavigateUri propetry :  &lt;/p&gt;
&lt;p&gt;&amp;lt;Intersoft:UXStackItem Text="Notepad" Icon="/Assets/Files/html.png" NavigateUri="/Views/notepad.xaml"/&amp;gt;&lt;/p&gt;
&lt;p&gt;...without any result&lt;/p&gt;
&lt;p&gt;2. open via Command:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'courier new', tahoma; font-size: 12px; white-space: pre; "&gt;&amp;lt;Intersoft:UXStackItem Text="Development Roadmap[ands]" &lt;/span&gt;&lt;/p&gt;&lt;pre&gt; Icon="/Assets/Files/doc.png" 
 Command="Intersoft:WindowCommands.LaunchApplication"  &amp;gt;
   &amp;lt;Intersoft:UXStackItem.CommandParameter&amp;gt;
      &amp;lt;Intersoft:WindowOptions Uri="/Views/Notepad.xaml" ForceSingleInstance="True" /&amp;gt;
   &amp;lt;/Intersoft:UXStackItem.CommandParameter&amp;gt;
&amp;lt;/Intersoft:UXStackItem&amp;gt;&lt;/pre&gt;
&lt;p&gt;It's working only when I set addition two parameters: &lt;/p&gt;
&lt;p&gt;CommandTarget="{Binding ElementName=uxDesktop}"&lt;br /&gt;IsEnabled="True"&lt;/p&gt;
&lt;p&gt;Is it really necessary ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; Kind regards&lt;/p&gt;
&lt;p&gt;Andrzej&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>