﻿<?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 - Opening a view from another DLL as modal </title><link>http://www.intersoftsolutions.com/Community/ClientUI/Opening-a-view-from-another-DLL-as-modal/</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>Opening a view from another DLL as modal </title><link>http://www.intersoftsolutions.com/Community/ClientUI/Opening-a-view-from-another-DLL-as-modal/</link><pubDate>Wed, 16 Feb 2011 12:12:28 GMT</pubDate><dc:creator>jimmyps</dc:creator><description>&lt;p&gt;Hi Sebastien,&lt;/p&gt;&lt;p&gt;Although your workaround may work in the current 
state, you lose the benefits of having independent type that created 
based on the application package. For instance, the GetCallingAssembly 
may return an unexpected assembly when your application grows more 
complex.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Hth,&lt;br /&gt;Jimmy &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Opening a view from another DLL as modal </title><link>http://www.intersoftsolutions.com/Community/ClientUI/Opening-a-view-from-another-DLL-as-modal/</link><pubDate>Fri, 11 Feb 2011 08:53:33 GMT</pubDate><dc:creator>bouh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;We found a way to resolve our issue.&lt;/p&gt;
&lt;p&gt;We changed the "public static IModalWindow GetInstance(string viewType)" method like this :&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Original :&lt;/p&gt;&lt;blockquote style="padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; "&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static IModalWindow GetInstance(string viewType)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return UXShell.Current.RootApplication.CreateInstance(viewType) as IModalWindow;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p /&gt;
&lt;p style="" /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Modified :&lt;/p&gt;
&lt;p /&gt;&lt;blockquote style="padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; "&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static IModalWindow GetInstance(string viewType)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assembly assembly = Assembly.GetCallingAssembly();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return assembly.CreateInstance(viewType) as IModalWindow;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p&gt;Any idea if we could have any side effect ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title>Opening a view from another DLL as modal </title><link>http://www.intersoftsolutions.com/Community/ClientUI/Opening-a-view-from-another-DLL-as-modal/</link><pubDate>Fri, 11 Feb 2011 01:22:17 GMT</pubDate><dc:creator>jimmyps</dc:creator><description>&lt;p&gt;Hi Sebastien,&lt;/p&gt;&lt;p&gt;I supposed that you have created the ApplicationPackage for the Silverlight project you wish to load on demand.&lt;/p&gt;
&lt;p&gt;In this case, make sure the EntryPointAssembly or the MainAssembly attribute in the SAFMetaData.xml that resides in your "external" Silverlight project has been properly set.&lt;/p&gt;
&lt;p&gt;The type that you passed to the CreateInstance should be the FQDN of the class type (i.e., SilverlightApp1.Class1), and this class should be found in the assembly you specified in either the EntryPointAssembly/MainAssembly described above.&lt;/p&gt;
&lt;p&gt;For more information about ApplicationPackage, please refer to &lt;a target="_blank" href="http://www.intersoftpt.com/Support/ClientUI/Docs/ApplicationFrameworkOverview.html#ClientUIAnatomy"&gt;ClientUI Application Framework Overview&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;Jimmy&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Opening a view from another DLL as modal </title><link>http://www.intersoftsolutions.com/Community/ClientUI/Opening-a-view-from-another-DLL-as-modal/</link><pubDate>Thu, 10 Feb 2011 06:31:55 GMT</pubDate><dc:creator>bouh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Our DLL were created as "Silverlight Class Library". They are part of the Silverlight project (the silverlight application has a dependency on them).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Our concern is about the naming convention on this call :&lt;/p&gt;

&lt;p&gt;UXShell.Current.RootApplication.CreateInstance(viewType)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What should be the value of viewType in our case ? « Assembly.View » ?  « Assembly/View » ? Something else ?&lt;/p&gt;</description></item><item><title>Opening a view from another DLL as modal </title><link>http://www.intersoftsolutions.com/Community/ClientUI/Opening-a-view-from-another-DLL-as-modal/</link><pubDate>Thu, 10 Feb 2011 05:34:12 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Does the dll come from another library WebProject application? Or is it from Silverlight Web Aplication?&lt;br /&gt;I think if it is from another Silverlight Web Application, you could not refer into .dll itself, but it should .xap itself. Regarding this scenario, I would like to discuss with our developer teams. I will let you know asap after I got the response.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Opening a view from another DLL as modal </title><link>http://www.intersoftsolutions.com/Community/ClientUI/Opening-a-view-from-another-DLL-as-modal/</link><pubDate>Tue, 08 Feb 2011 15:59:11 GMT</pubDate><dc:creator>bouh</dc:creator><description>&lt;p /&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;We are trying to use the DialogBoxServiceProvider.cs from the ClientUI/Devforce exemple (ContactMVVM).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Our project has one unique application and many DLL, each ones containing ViewModels et Views. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When we try to open a view as modal, it only works if the view is in the silverlight application.&lt;/p&gt;
&lt;p&gt;We can't manage to call a view in another DLL. Is there a particulary way to name the view when it is not in the application ? We tried many way but each gave an error :&lt;/p&gt;
&lt;p&gt;In the function GetInstanceAsync, the property Instance as null for value on the following line :  resultCallback((IModalWindow)asyncResult.Instance); &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;We tried to call the main function with thiose parameter :&lt;/p&gt;
&lt;p&gt;"viewA"&lt;/p&gt;
&lt;p&gt;"AssemblyA.viewA"&lt;/p&gt;
&lt;p&gt;"AssemblyA;component/viewA"&lt;/p&gt;
&lt;p&gt;"/AssemblyA;component/viewA" &lt;/p&gt;
&lt;p&gt;etc ...&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to call as modal a view wich isn't in the silverlight application ? if yes how ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>