<?xml version="1.0"?><rss version="2.0"><channel><title>Milos Solution Platform</title><link>http://www.MilosSolutionPlatform.com</link><description>News about the Milos Solution Platform</description><language>en-us</language><copyright>EPS Software Corp.</copyright><managingEditor>Milos Team</managingEditor><generator>Milos Solution Platform - www.MilosSolutionPlatform.com</generator><item><title>Milos Name Components now support more standard types</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=e712fbd7-7868-4903-8731-21734d1a1265</link><author>markus@code-magazine.com</author><pubDate>Tue, 16 Nov 2010 23:51:59 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/e712fbd7-7868-4903-8731-21734d1a1265</guid><description>&lt;h1&gt;Milos Name Components now support more standard types&lt;/h1&gt;&lt;p&gt;We just released up updated version of the Milos name components that support more different standard types of communication information. In particular, we now support the following:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Twitter &lt;li&gt;Facebook (name and internal ID) &lt;li&gt;LinkedIn &lt;li&gt;Windows Live ID &lt;li&gt;Xing &lt;li&gt;YouTube&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This update also includes an update of the UI components. So for instance, our standard name edit UI now features the following communication type drop down:&lt;/p&gt;&lt;p&gt;&lt;img src="/blogs/images/NameDropDown.jpg"&gt;&lt;/p&gt;&lt;p&gt;All the terms used are fully localizable, btw.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 5:51 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=e712fbd7-7868-4903-8731-21734d1a1265</comments></item><item><title>Silverlight ASP.NET Server Control Update</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=5ed4bc5b-79e9-449a-a4e4-1684c72e3e8b</link><author>markus@code-magazine.com</author><pubDate>Sun, 19 Jul 2009 21:16:12 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/5ed4bc5b-79e9-449a-a4e4-1684c72e3e8b</guid><description>&lt;h1&gt;Silverlight ASP.NET Server Control Update&lt;/h1&gt;&lt;p&gt;Here's a bit more on our ASP.NET Silverlight Control &lt;a href="http://www.milossolutionplatform.com/MilosBlog.aspx?messageid=e2903254-2e91-4501-a72d-c5f235d9e648"&gt;I talked about recently&lt;/a&gt;: We now updated this control to not just be compatible with the old control shipped by Microsoft, but to do things you might find useful. Here is a list of changes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Default minimum version is now set to 3.0&lt;/li&gt;
&lt;li&gt;Removed the ScaleMode property, since that just isn't supported by Silverlight anymore&lt;/li&gt;
&lt;li&gt;Added the ability to very easily set that a control uses 100% of the available browser space&lt;/li&gt;
&lt;li&gt;Added the ability to fire a storyboard in a splash screen XAML file&lt;/li&gt;
&lt;li&gt;Added the ability to update a string in the splash screen that represents current download progress&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Here is an example aspx file containing a Silverlight control (this one is from www.D2SIG.org):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font size=3&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;font face="Courier New"&gt;&amp;lt;%&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;@&lt;/font&gt;&lt;/font&gt; &lt;font color=#a31515&gt;&lt;font color=#a31515&gt;Page&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Language&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="C#"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;AutoEventWireup&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="true"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;CodeBehind&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="Default.aspx.cs"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Inherits&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="D2SIGWeb._Default"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt; %&amp;gt;&lt;br&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&amp;lt;%&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;@&lt;/font&gt;&lt;/font&gt; &lt;font color=#a31515&gt;&lt;font color=#a31515&gt;Register&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;assembly&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="SimpleWebControls"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;namespace&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="EPS.Web.SimpleControls"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;tagprefix&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="cc1"&lt;/font&gt;&lt;/font&gt; %&amp;gt;&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;lt;!&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;DOCTYPE&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;html&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;PUBLIC&lt;/font&gt;&lt;/font&gt; &lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;"-//W3C//DTD XHTML 1.0 Transitional//EN"&lt;/font&gt;&lt;/font&gt; &lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;html&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;xmlns&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="http://www.w3.org/1999/xhtml"&lt;/font&gt;&lt;/font&gt; &lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;gt;&lt;br&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&amp;nbsp; &amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;head&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="server"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;title&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;D2SIG - Developers &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;&amp;amp;amp;&lt;/font&gt;&lt;/font&gt; Designers Special Interest Group&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;title&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;gt;&lt;br&gt;&amp;nbsp; &lt;/font&gt;&lt;font face="Courier New"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515 face="Courier New"&gt;head&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;gt;&lt;br&gt;&amp;nbsp; &lt;/font&gt;&lt;font face="Courier New"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;body&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;form&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;id&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="form1"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="server"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;style&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="&lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;height&lt;/font&gt;&lt;/font&gt;: &lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;100%&lt;/font&gt;&lt;/font&gt;;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;ScriptManager&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="ScriptManager1"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="server"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;ScriptManager&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;cc1&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;Silverlight&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="Silverlight1"&lt;/font&gt;&lt;/font&gt; &lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="server"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Source&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="~/ClientBin/D2SIGSL.xap"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;DisplayMode&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="FullBrowser"&lt;br&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;SplashScreenSource&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="~/D2SIGLoading.xaml"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;SplashScreenProgressUpdateObjectId&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="ProgressLabel"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;SplashScreenStoryboard&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;="Loading"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;cc1&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;Silverlight&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;form&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;gt;&lt;br&gt;&amp;nbsp; &lt;/font&gt;&lt;font face="Courier New"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515 face="Courier New"&gt;body&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;html&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;Note that there are no div tags required anymore (you can still add them if you want to, but it is handled by the control automatically). Also, no CSS styles have to be defined for the 100% height and width anywhere. Instead, the DisplayMode of the control is set to FullBrowser, which handles the 100% height and width right in all browsers. 
&lt;p&gt;&lt;/p&gt;Also note that this example fires a storyboard called "Loading", which is inside the resources of the D2SIGLoading.xaml file. 
&lt;p&gt;&lt;/p&gt;Furthermore, that XAML file has a text run called "ProgressLabel" which is automatically updated with the current download percentage rounded to full numbers. The XAML file has a text run inside a textblock that is defined like this: 
&lt;p&gt;&lt;/p&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;
&lt;p&gt;&lt;font size=2 face="Courier New"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;TextBlock&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Height&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;14&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;HorizontalAlignment&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;Center&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Width&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;45&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Canvas.Top&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;54&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;TextAlignment&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;Center&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Foreground&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;#FF646464&lt;/font&gt;&lt;/font&gt;"&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font face="Courier New"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;Run&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;x:Name&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;ProgressLabel&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;FontFamily&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;Trebuchet MS&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Text&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;0&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;/&amp;gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;Run&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;FontFamily&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;Trebuchet MS&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;Text&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;%&lt;/font&gt;&lt;/font&gt;"&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&lt;font face="Courier New"&gt;/&amp;gt;&lt;br&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;TextBlock&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;Note that whatever object is specified as the progress update object must have a Text property of type string. Note that you can create custom objects with that property, which will automatically be updated as progress changes. You could then do whatever you'd like with that value, including parsing it as a number and use that for further calculations.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 4:16 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=5ed4bc5b-79e9-449a-a4e4-1684c72e3e8b</comments></item><item><title>A Silverlight 3 ASP.NET Host Control</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=e2903254-2e91-4501-a72d-c5f235d9e648</link><author>markus@code-magazine.com</author><pubDate>Fri, 17 Jul 2009 6:44:51 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/e2903254-2e91-4501-a72d-c5f235d9e648</guid><description>&lt;h1&gt;A Silverlight 3 ASP.NET Host Control&lt;/h1&gt;&lt;p&gt;Silverlight 3 has released, and with it have come some changes. One change is that the handy ASP.NET server control provided with Silverlight 2 is no longer supported. The official recommendation from MS is to simply embed client-side HTML tags (div and object tags) or use JavaScript to create an appropriate Silverlight embedding environment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;There certainly are upsides to that approach (flexibility and more customization), but there also are downsides (the control made things very simple, and it also allowed for code-behind access to properties on the control). Long story short: There really is no downside&amp;nbsp;to having this control. For this reason, we recreated a Silverlight control 1:1 in the Milos Simple Web Controls assembly that you are probably already using in your ASP.NET apps. The control is 100% compatible. In fact, the only thing you have to change is the registration line of the assembly at the top of the .aspx file (the one that declares the "asp" namespace) so it points at SimpleWebControls.dll, rather than System.Web.Silverlight.dll file used by the Silverlight 2 SDK. 
&lt;p&gt;&lt;/p&gt;Oh, and btw: While we were at it, we made a few small improvements, such as a straightforward way to set the minimum required Silverlight version to 3.0. 
&lt;p&gt;&lt;/p&gt;&amp;nbsp;Note that this also includes the entire design time experience as well as required resources such as images, XAML, and scripts.
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 1:44 AM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=e2903254-2e91-4501-a72d-c5f235d9e648</comments></item><item><title>Self-Hosted WCF Cross-Domain Service Call Policies</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=7efe9e80-171e-4933-9c05-074edb03e06a</link><author>markus@code-magazine.com</author><pubDate>Sun, 8 Feb 2009 19:40:56 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/7efe9e80-171e-4933-9c05-074edb03e06a</guid><description>&lt;h1&gt;Self-Hosted WCF Cross-Domain Service Call Policies&lt;/h1&gt;&lt;p&gt;Yesterday I blogged about a new Milos feature that allows to self-host Basic HTTP services, which is a feature that is useful when one has a service that is hosted using other bindings, but wants to expose the Basic HTTP binding in addition to others, which is typically done in Silverlight or browser scenarios (&lt;a href="http://www.milossolutionplatform.com/MilosBlog.aspx?messageid=cb59a3f7-8113-4b56-8a13-10f1112008f9"&gt;click here for yesterday's post&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;When hosting Basic HTTP services for Silverlight, it is also important to know that Silverlight by default can only call services that are part of the same web application as the Silverlight app itself. This will practically&amp;nbsp;never be the case when you self -host a Basic HTTP service. To allow that service to be called from Silverlight, the &lt;strong&gt;service &lt;/strong&gt;must opt in to be callable across domains. (Note: Different ports also count as different domains in this case). This is a security restriction to avoid cross-site attacks. 
&lt;p&gt;Using the Milos self-host Basic HTTP feature, you can also enable cross-domain calling like so:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font size=3&gt;
&lt;p&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;ServiceGarden&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;.AllowCrossDomainCalls();&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;For instance, if you want to host a service that is available both over TCP/IP and Basic HTTP and allows cross-domain calls, it could be done like so: 
&lt;p&gt;&lt;/p&gt;&lt;font size=3&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font face="Courier New" color=#2b91af size=3&gt;ServiceGarden&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;&lt;font face="Courier New"&gt;.AllowCrossDomainCalls();&lt;br&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;ServiceGarden&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;.AddServiceHostNetTcp(&lt;/font&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;typeof&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;(&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;EventService&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;&lt;font face="Courier New"&gt;));&lt;br&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;ServiceGarden&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;.AddServiceHostBasicHttp(&lt;/font&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;typeof&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;(&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;EventService&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;));&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;Note that the cross-domain call only relates to HTTP based access, but not to other protocols.
&lt;p&gt;&lt;/p&gt;Note also that the cross-domain call is enabled by means of a policy that is now available. You can browse to that policy using your web browser. For instance, if you run this in a test environment on localhost, you can now browse to &lt;a href="http://localhost/clientaccesspolicy.xml"&gt;http://localhost/clientaccesspolicy.xml&lt;/a&gt;, to see the exact settings that are exposed. This is what Silverlight accesses to allow a cross-domain call. 
&lt;p&gt;Note that it is possible to set additional parameters. In particular, you can specify which sites can make a cross domain call. For instance, if you only want to accept calls from &lt;a href="http://www.microsoft.com/"&gt;www.Microsoft.com&lt;/a&gt; and &lt;a href="http://www.google.com/"&gt;www.Google.com&lt;/a&gt;, you can restrict the cross domain calls in the following fashion:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New" color=#2b91af size=3&gt;ServiceGarden&lt;/font&gt;&lt;font face="Courier New" size=3&gt;.AllowCrossDomainCalls(&lt;font color=#0000ff&gt;new&lt;/font&gt; Uri[] {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#2b91af&gt;Uri&lt;/font&gt;(&lt;font color=#8b0000&gt;"http://www.Microsoft.com"&lt;/font&gt;),&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#2b91af&gt;Uri&lt;/font&gt;(&lt;font color=#8b0000&gt;"http://www.Google.com"&lt;/font&gt;) });&lt;br&gt;&lt;/font&gt;
&lt;p&gt;Note that these features are available on the ServiceGarden class as well as the development host. When the development host is used, the policy is listed in the UI as an additional service endpoint.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 1:40 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=7efe9e80-171e-4933-9c05-074edb03e06a</comments></item><item><title>Self-Hosting Basic HTTP WCF Services</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=cb59a3f7-8113-4b56-8a13-10f1112008f9</link><author>markus@code-magazine.com</author><pubDate>Sat, 7 Feb 2009 22:46:16 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/cb59a3f7-8113-4b56-8a13-10f1112008f9</guid><description>&lt;h1&gt;Self-Hosting Basic HTTP WCF Services&lt;/h1&gt;&lt;p&gt;Milos provides a real simple way to develop and host (both in runtime as well as debug scenarios) WCF services. This is especially true for binary, TCP/IP based services that are great to use when both the client and the server are .NET applications. Another common scenario is hosting WCF services as HTTP and XML based web services. Especially with Silverlight, basic HTTP based services have gained more importance again. Of course, it is simple to host such services in IIS, and thus we have not provided any special features around that in Milos.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;At least not so far. One of the&amp;nbsp;scenarios people have pointed out to us (and frankly, we've run into ourselves too) is a deployment of the same service using multiple bindings. Why deploy one app for TCP/IP and then create a separate, ASP.NET based web app for XML web service support? 
&lt;p&gt;&lt;/p&gt;We have now created support for Milos aided, self-hosted Basic HTTP services. This is supported both in the ServiceGarden and development host environments. Here is an example of hosting a service in both TCP/IP and Basic HTTP configurations at the same time:&lt;br&gt;&lt;font size=3&gt;
&lt;p&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;ServiceGarden&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;.AddServiceHostNetTcp(&lt;/font&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;typeof&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;(&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;EventService&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font size=3&gt;));&lt;br&gt;&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;ServiceGarden&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;.AddServiceHostBasicHttp(&lt;/font&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;typeof&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;(&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;EventService&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;));&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;This example was from a runtime deployed service (likely hosted in a Windows Service). The following example shows the same service hosted in the development environment with support for both protocols.&lt;br&gt;&lt;font size=3&gt;
&lt;p&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt; host = &lt;/font&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt; &lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;TestServiceHost&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font size=3&gt;();&lt;br&gt;host.AddNetTcpService(&lt;/font&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;typeof&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;(&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;EventService&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font size=3&gt;));&lt;br&gt;host.AddBasicHttpService(&lt;/font&gt;&lt;font color=#0000ff size=3&gt;&lt;font color=#0000ff size=3&gt;typeof&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;(&lt;/font&gt;&lt;font color=#2b91af size=3&gt;&lt;font color=#2b91af size=3&gt;EventService&lt;/font&gt;&lt;/font&gt;&lt;font size=3&gt;));&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;Accordingly, the ServiceClient class can now also natively open a connection to a Basic HTTP driven service. (Application configuration now supports "BasicHttp" as an additional service binding).
&lt;p&gt;&lt;/p&gt;Enjoy!
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 4:46 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=cb59a3f7-8113-4b56-8a13-10f1112008f9</comments></item><item><title>Dynamic Property and Method Access</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=d1da0a0c-2531-4957-af20-956cd5c242ac</link><author>markus@code-magazine.com</author><pubDate>Tue, 6 Jan 2009 15:47:38 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/d1da0a0c-2531-4957-af20-956cd5c242ac</guid><description>&lt;h1&gt;Dynamic Property and Method Access&lt;/h1&gt;&lt;p&gt;The upcoming version of Milos has a nifty little enhancement in the ObjectHelper class: It makes it easier to dynamically access/set properties and invoke methods. This is useful in scenarios that can otherwise only be handled with Reflection.&lt;/p&gt;
&lt;p&gt;Example: Consider a scenario where a customer object is provided by some external system (perhaps from a dynamic language) and you need to access or set a name property. This can now be done like so in Milos:&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;object&lt;/font&gt; customer = GetCustomerObjectFromSomewhere();&lt;br&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt; firstName = EPS.Utilities.&lt;font color=#008080&gt;ObjectHelper&lt;/font&gt;.GetPropertyValue&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;(customer, &lt;font color=#a52a2a&gt;"FirstName"&lt;/font&gt;);&lt;br&gt;EPS.Utilities.&lt;font color=#008080&gt;ObjectHelper&lt;/font&gt;.SetPropertyValue(customer, &lt;font color=#a52a2a&gt;"LastName"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"Smith"&lt;/font&gt;);&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;Note that these methods are also available as extension methods. To use the extension methods, the EPS.Utilities namespace has to be included at a file level, by putting the following using statement at the top of your source file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;using&lt;/font&gt; EPS.Utilities; &lt;/font&gt;
&lt;p&gt;&lt;/p&gt;Now, the above code can be simplified to the following: 
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;object&lt;/font&gt; customer = GetCustomerObjectFromSomewhere();&lt;br&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt; firstName = customer.GetPropertyValue&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;(&lt;font color=#a52a2a&gt;"FirstName"&lt;/font&gt;);&lt;br&gt;customer.SetPropertyValue(&lt;font color=#a52a2a&gt;"LastName"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"Smith"&lt;/font&gt;);&lt;/p&gt;&lt;/font&gt;Milos now also makes it easier to invoke methods dynamically. For instance, one can call a method ont he same object like so: 
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;nbsp;name = customer.InvokeMethod&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;(&lt;font color=#a52a2a&gt;"GetFullName"&lt;/font&gt;, null);&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;Note that the second parameter is an array of parameters that get passed to the method. For instance, if the GetFullName() method takes an integer and a string parameter, it could be passed like so:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;object&lt;/font&gt;[] parameters = { 0, &lt;font color=#a52a2a&gt;"Test"&lt;/font&gt; };&lt;br&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;nbsp;name = customer.InvokeMethod&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;(&lt;font color=#a52a2a&gt;"GetFullName"&lt;/font&gt;, parameters);&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;Note that C# 4.0 (once released) will provide features to also make it easier to do these things. In C# 4.0, the following syntax would be valid:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;strong&gt;dynamic&lt;/strong&gt;&lt;/font&gt;&amp;nbsp;customer = GetCustomerObjectFromSomewhere();&lt;br&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt; firstName = customer.FirstName;&lt;br&gt;customer.LastName = &lt;font color=#a52a2a&gt;"Smith"&lt;/font&gt;;&lt;br&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt; name = customer.GetFullName(1, &lt;font color=#a52a2a&gt;"Test"&lt;/font&gt;);&lt;/p&gt;&lt;/font&gt;The example used here, with the&amp;nbsp;Customer object dynamically retrieved somewhere is one&amp;nbsp;scenario where this is useful. There are other scenarios&amp;nbsp;as well, where generic code is written that can operate on types that are defined elsewhere. Data binding scenarios are one example. 
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 9:47 AM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=d1da0a0c-2531-4957-af20-956cd5c242ac</comments></item><item><title>Object casting convenience methods</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=08a72732-74fa-41c5-88e9-b63cb5f8ac71</link><author>markus@code-magazine.com</author><pubDate>Sat, 20 Dec 2008 20:3:34 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/08a72732-74fa-41c5-88e9-b63cb5f8ac71</guid><description>&lt;h1&gt;Object casting convenience methods&lt;/h1&gt;&lt;p&gt;This upcoming version of Milos has a nice little enhancement in the utilities namespace. The DataHelper class now has extension methods that make it very convenient to cast from object types (such as fields in DataSets) to their real types.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;These helper methods are implemented as extension methods. To use them, you have to add this line of code at the top of your program:
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;using&lt;/font&gt; EPS.Utilities;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;Now, the extension methods are automatically available on all objects. For instance, you can do the following:
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;DataSet&lt;/font&gt; myDs = &lt;font color=#0000ff&gt;this&lt;/font&gt;.GetSomeDataSet(); &lt;font color=#008080&gt;&lt;font color=#008000&gt;// Assume that we somehow get a DataSet&lt;/font&gt;&lt;br&gt;&lt;/font&gt;&lt;font color=#008080&gt;DataRow&lt;/font&gt; row = myDs.Tables[0].Rows[0];&lt;br&gt;&lt;font color=#008080&gt;Guid&lt;/font&gt; myGuid = row[&lt;font color=#8b0000&gt;"id"&lt;/font&gt;].ToGuidSafe();&lt;br&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt; myString = row[&lt;font color=#8b0000&gt;"name"&lt;/font&gt;].ToStringSafe().Trim();&lt;br&gt;&lt;font color=#0000ff&gt;int&lt;/font&gt; myInt = row[&lt;font color=#8b0000&gt;"number"&lt;/font&gt;].ToIntegerSafe();&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;The main advantage here is that these methods always return valid values, even if the cast object is not valid. For instance, these methods are aware of System.DBNull and they also trap errors.
&lt;p&gt;&lt;/p&gt;There are a number of different such methods, including the ability to cast to booleans, DateTime, decimal, and so forth (all common value types, basically).
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 2:03 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=08a72732-74fa-41c5-88e9-b63cb5f8ac71</comments></item><item><title>Some Enhancements to the Document Management Components</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=40d8bdb4-722d-4a57-be3f-5d563202a61b</link><author>markus@code-magazine.com</author><pubDate>Sat, 25 Oct 2008 4:49:25 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/40d8bdb4-722d-4a57-be3f-5d563202a61b</guid><description>&lt;h1&gt;Some Enhancements to the Document Management Components&lt;/h1&gt;&lt;p&gt;The upcoming build of Milos has a few small but important enhancements for the digital Document Management components.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;Most important is the improved support for ASP.NET's routing framework (introduced with ASP.NET 3.5 SP1). This enhancement allows for an arbitrary download URL for file attachments in web applications. For instance, one can create the following URL (or any other arbitrary chosen URL): 
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.yourdomain.com/Downloads/42f39e5c-a012-4d91-8e78-889f2bdccb4c/MyFile.mp3"&gt;http://www.YourDomain.com/Downloads/&lt;u&gt;&lt;font color=#0066cc&gt;42f39e5c-a012-4d91-8e78-889f2bdccb4c/MyFile.mp3&lt;/a&gt;&lt;/font&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;A route and handler can be set up for this URL like so:&lt;/p&gt;
&lt;p&gt;&lt;font face=Consolas&gt;&lt;font color=#0000ff&gt;public static class&lt;/font&gt; &lt;font color=#008080&gt;RoutingSetup&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~RoutingSetup"&gt;?&lt;/a&gt;&lt;/font&gt;&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;public static void&lt;/font&gt; RegisterRoutes&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~RegisterRoutes"&gt;?&lt;/a&gt;(&lt;font color=#008080&gt;RouteCollection&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~RouteCollection"&gt;?&lt;/a&gt;&lt;/font&gt; routes)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; routes.Add(&lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#008080&gt;Route&lt;/font&gt;(&lt;font color=#800000&gt;"Downloads/{DownloadId}/{FileName}&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~Downloads/{DownloadId}/{FileName}"&gt;?&lt;/a&gt;"&lt;/font&gt;, &lt;font color=#0000ff&gt;new &lt;/font&gt;&lt;font color=#008080&gt;FileAttachmentDownloads&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~FileAttachmentDownloads"&gt;?&lt;/a&gt;&lt;/font&gt;()));&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;font color=#0000ff&gt;public class &lt;/font&gt;&lt;font color=#008080&gt;FileAttachmentsDownloads&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~FileAttachmentsDownloads"&gt;?&lt;/a&gt;&lt;/font&gt; : &lt;font color=#008080&gt;IRouteHandler&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~IRouteHandler"&gt;?&lt;/a&gt;&lt;/font&gt;&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;var&lt;/font&gt; handler = &lt;font color=#0000ff&gt;new &lt;/font&gt;EPS.Web.DocumentManagementUI.&lt;font color=#008080&gt;RequestHandler&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~RequestHandler"&gt;?&lt;/a&gt;&lt;/font&gt;();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#008080&gt;Guid&lt;/font&gt; downloadId = &lt;font color=#0000ff&gt;new &lt;/font&gt;&lt;font color=#008080&gt;Guid&lt;/font&gt;(requestContext.RouteData.GetRequiredString(&lt;font color=#800000&gt;"DownloadId&lt;a href="/wiki/Framework/wc.dll?Framework~EDIT~DownloadId"&gt;?&lt;/a&gt;"&lt;/font&gt;));&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; handler.AttachmentId = downloadId;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;return&lt;/font&gt; handler;&lt;br&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;Other enhancements include more automatically determined content types for web downloads (in particular XAML is of importance) and also a few added icons in the windows file attachment grids (MP3 and&amp;nbsp;XAML in particular).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 11:49 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=40d8bdb4-722d-4a57-be3f-5d563202a61b</comments></item><item><title>Background Style of Office Edit Forms</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=336a10da-0df2-4b95-a694-8a444f2c6228</link><author>markus@code-magazine.com</author><pubDate>Thu, 23 Oct 2008 23:3:52 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/336a10da-0df2-4b95-a694-8a444f2c6228</guid><description>&lt;h1&gt;Background Style of Office Edit Forms&lt;/h1&gt;&lt;p&gt;Milos edit forms in WinForms that use the office style usually render a background pattern similar to Microsoft Word or Excel. Some people ask to turn that off (and how to achieve that). It is quite simple, actually:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;Office edit forms have a property called &lt;font face="Courier New"&gt;RenderOfficeBackground&lt;/font&gt;. If that property is set to &lt;font face="Courier New"&gt;false&lt;/font&gt;,&amp;nbsp; the normal background color of the form (whatever that property might be set to) is rendered, instead of the fancy Office background pattern.
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 6:03 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=336a10da-0df2-4b95-a694-8a444f2c6228</comments></item><item><title>Non-Key Auto-Increment Fields</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=c3ecb920-f5a7-47ae-ac92-63d0611c9307</link><author>markus@code-magazine.com</author><pubDate>Thu, 23 Oct 2008 21:43:39 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/c3ecb920-f5a7-47ae-ac92-63d0611c9307</guid><description>&lt;h1&gt;Non-Key Auto-Increment Fields&lt;/h1&gt;&lt;p&gt;Here's a small Milos feature addition that could be of interest to some people: We now support auto-increment fields that aren't key fields. In the past, we only supported such fields when they were in fact key fields (and there is quite a bit of functionality Milos has specific to that). In the latest version, such fields can be any field in the database.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;Note that it only makes sense to expose such fields as read-only properties in business entities. Also, there is some additional work that needs to be done on the side of the developer to pick up the newest values generated by the database whenever such data gets saved the first time. (And of course, there is some overhead in database access and round trips that should not be underestimated). 
&lt;p&gt;&lt;/p&gt;Also, be aware that we do NOT recommend using this feature whenever the incremental field is used for business logic. Business logic belongs in the middle tier and not the database. 
&lt;p&gt;&lt;/p&gt;So this is a feature that may be valuable but it also should be deployed somewhat carefully. But there you have it: It's now supported. 
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 4:43 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=c3ecb920-f5a7-47ae-ac92-63d0611c9307</comments></item><item><title>General Milos News</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=e1b1e993-7f8e-4a21-bb30-2474390f3c4a</link><author>markus@code-magazine.com</author><pubDate>Tue, 3 Jun 2008 20:43:58 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/e1b1e993-7f8e-4a21-bb30-2474390f3c4a</guid><description>&lt;h1&gt;General Milos News&lt;/h1&gt;&lt;p&gt;During the week of May 5-9 EPS have hosted the first Milos University training course at the EPS Houston office. The first half of the event was lecture style, presenting the core aspects of Milos, such as its architecture and main components for the data, middle, and UI tiers, and lots of new features have been shown, such as our first components for building WPF applications with Milos, framework components and tools for building service-oriented applications (using WCF), the new DataLoadController component for improved usability and testability, the new framework for unit and integration tests of middle-tier components, the new logging and exception publishing/handling components, new components for building ASP.NET web applications, etc. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The second half of the event was hands-on, and a WinForms application was built with every attendee going through the entire process, step-by-step, including writing unit and integration tests for the middle-tier classes. This sample application will be cleaned up and made available for people to download and play with it soon.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Today we are also rolling out a new version of Milos components, including updated whitepapers and tools. If you are a Milos user, you will be getting the updates through email.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Below is a list of some important things included in this new build.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;SimpleWPFControls&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Components for building WPF applications using the well-known architecture available in other Milos user-interface components, such as multi-threaded data loading operations, ease-of-use data binding, etc.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Milos Services&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Components and tools for building service-oriented applications (and WCF) with Milos.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;SimpleWebControls&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Improvements for data binding all around&lt;/li&gt;
&lt;li&gt;A new data edit panel which mimic WinForms style edit form development more closely on the web&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.milossolutionplatform.com/MilosBlog.aspx?messageid=29318330-7996-4dc4-895e-3ef6125acd7a"&gt;JQuery support&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Integrated resource handler&lt;/li&gt;
&lt;li&gt;Overlay panel for client side dialogs&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;DeveloperExpressWindows&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A SimpleListPane class to handle panes that launch edit forms.&lt;/li&gt;
&lt;li&gt;Added capability to work with new DataLoadController&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;Core&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.milossolutionplatform.com/MilosBlog.aspx?messageid=8dc425ac-0717-40ae-8a71-5325ae9e6457"&gt;DataLoadController&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Improvements to the EditDataLoader (handling of primary/secondary data multi-threaded loading)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.milossolutionplatform.com/MilosBlog.aspx?messageid=a1001c8f-0f3d-4c21-8926-57533b1218f0"&gt;Logging components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.milossolutionplatform.com/MilosBlog.aspx?messageid=a1001c8f-0f3d-4c21-8926-57533b1218f0"&gt;Exception publishing/handling components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.milossolutionplatform.com/MilosBlog.aspx?messageid=9c2ead6c-716d-4232-bfdc-90db8fa2ff31"&gt;Improved support for Generic collections on entities&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;BusinessObjects&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Added simple support for deletion business rules&lt;/li&gt;
&lt;li&gt;Added full support for serialization of business entities&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;DataXml&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Improved service for saving byte array data (such as Bitmaps)&lt;/li&gt;
&lt;li&gt;Implemented ExecuteScalar method. It supports queries such as "SELECT Column FROM Table WHERE Field = Value", and it'll always return the value of the first column, in the first row, in the first table (in case the query returns more than that). Notice that the XML Data Service does not currently support queries with aggregators, such as "SELECT Count(*) FROM Table".&lt;/li&gt;
&lt;li&gt;The service is now read-write when working with data as “embedded resource”. This means that the data can be queried and updated, but that all happens in-memory, so whenever the application is restarted, it uses the original data.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;TestFramework&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;This framework has almost been written from scratch, and it replaces the previous UnitTestFramework and IntegrationTestFramework components.&lt;/li&gt;
&lt;li&gt;This new framework addresses several limitations found on the previous ones, and it adds a lot more hooks and features, allowing developers to easily achieve a good code coverage of their business objects and entities.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;Code Analysis rules&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fixes to several false positives&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Business Layer Designer (previous called “Business Entity Generator”)&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Several bug fixes&lt;/li&gt;
&lt;li&gt;Improved support for using either Generic or custom collections&lt;/li&gt;
&lt;li&gt;Added support for applying any of the business rules that come out of the box to properties on the entity.&lt;/li&gt;
&lt;li&gt;Added support for specifying a different base class for business entities.&lt;/li&gt;
&lt;li&gt;Added support for specifying a Default Fields and Default Order for the GetList method on business objects.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is a lot more to come, but we will save that for later.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 3:43 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=e1b1e993-7f8e-4a21-bb30-2474390f3c4a</comments></item><item><title>Data Load Controllers</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=8dc425ac-0717-40ae-8a71-5325ae9e6457</link><author>markus@code-magazine.com</author><pubDate>Wed, 16 Apr 2008 9:8:1 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/8dc425ac-0717-40ae-8a71-5325ae9e6457</guid><description>&lt;h1&gt;Data Load Controllers&lt;/h1&gt;&lt;p&gt;We have recently introduced a fully-automatic way of creating external data loading mechanisms. This is achieved by means of so-called "data load controllers". So what is the basic idea behind these? Well, I am glad you asked! :-)&lt;/p&gt;
&lt;p&gt;Milos provides great ways to load data in all kinds of data edit forms, from Windows to the Web, in all kinds of variation. For instance, one can simply use the SetEntityType&amp;lt;&amp;gt;() method to automatically load an entity of a certain type in a window or a web form. It is also possible to override LoadContents() and LoadSecondary() data methods to load additional data, or load it in slightly different ways. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This makes for easy ways of loading data. However, in some scenarios, we want to go even further. (We will always continue to support this approach as it provides the basis for all operations, but we want to provide more options). There are a few scenarios we want to simplify. Here are those considerations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This approach generally relies on inheritance. That is OK in many scenarios, but in some scenarios (such as ASP.NET web forms or WPF/Silverlight XAML), there are scenarios where one just wants to use an object instance for data loading. For instance, one might want to put a data panel into a web form without explicitly subclassing it. Those scenarios are currently supported by means of an event model. That is not a bad approach, but it is slightly different from the inheritance model, and the written code is not IL-compatible, since method signatures are differently, and so forth. 
&lt;li&gt;Different interfaces may have a need to load the same data. For instance, 10 different forms of a windows application may need to load certain lookup tables. Or, an ASP.NET web form may need to load the same exact data as the WinForms or WPF equivalent. Neither the inheritance, nor the event model allows for simple code reuse in these scenarios. 
&lt;li&gt;It is very hard to unit test data loading for UIs if the code is embedded in, or attached to the user interface classes.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;We now provide an additional abstract option: All the data loading (and data handling) code can be put in an abstract class. Here is an example of such a class:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;public class&lt;/font&gt; &lt;font color=#008080&gt;NameEditLoader&lt;/font&gt; : &lt;font color=#008080&gt;DataLoadController&lt;/font&gt;&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;public override void&lt;/font&gt; Configure()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;this&lt;/font&gt;.SetEntityType&amp;lt;&lt;font color=#008080&gt;NameBusinessEntity&lt;/font&gt;&amp;gt;();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;public override object&lt;/font&gt; LoadSecondaryData()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#008080&gt;NameBusinessObject&lt;/font&gt; names = &lt;font color=#008080&gt;NameBusinessObject&lt;/font&gt;.NewInstance();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#008080&gt;DataSet&lt;/font&gt; dsNames = names.GetList();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; names.Dispose();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;return&lt;/font&gt; dsNames;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;If you are familiar with current Milos loading code, then you will recognize all of this, because the code is identical to code that would go into a Windows Forms class as well as other types of UI classes. The main difference is that this code now sits in an external class. This class can now be used in an interface class. For instance, it could be used in a Windows Form or a WPF window like so:
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;public&lt;/font&gt; MyWindow()&lt;font color=#008080&gt; &lt;font color=#008000&gt;// Constructor&lt;/font&gt;&lt;br&gt;&lt;/font&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;this&lt;/font&gt;.DataLoadControllers.Add(&lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#008080&gt;NameEditLoader&lt;/font&gt;());&lt;br&gt;}&lt;/font&gt;
&lt;p&gt;The same exact object can also be used on a web form:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;protected void&lt;/font&gt; Page_Load(&lt;font color=#0000ff&gt;object&lt;/font&gt; sender, &lt;font color=#008080&gt;EventArgs&lt;/font&gt; e)&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;this&lt;/font&gt;.dataEditPanel1.DataLoadControllers.Add(&lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#008080&gt;NameEditLoader&lt;/font&gt;());&lt;br&gt;}&lt;/font&gt;
&lt;p&gt;The same object could also be used in XAML, or in a mobile app, and so forth. Also, the object can now be used stand-alone in unit test scenarios, which is extremely important in test driven development (TDD) and other scenarios where unit tests are needed. (And most applications need unit tests these days).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;So we think this is a cool change. It is completely optional and everything that was there before is still available. But going forward, this is clearly the recommended approach.
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 4:08 AM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=8dc425ac-0717-40ae-8a71-5325ae9e6457</comments></item><item><title>Milos Web Development supports jQuery</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=29318330-7996-4dc4-895e-3ef6125acd7a</link><author>markus@code-magazine.com</author><pubDate>Thu, 10 Apr 2008 18:3:57 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/29318330-7996-4dc4-895e-3ef6125acd7a</guid><description>&lt;h1&gt;Milos Web Development supports jQuery&lt;/h1&gt;&lt;p&gt;Have you ever used jQuery? (&lt;a href="http://www.jquery.com/"&gt;www.jQuery.com&lt;/a&gt;). It is a very cool JavaScript library that makes all kinds of client-side HTML development much easier. The most recent version of Milos web control (ASP.NET) now use jQuery for internal stuff and it is also available for you to use in your own client-side efforts. Whenever you include SimpleWebControls.dll in one of your projects, you automatically get access to jQuery stuff. All you have to do is include a script reference, as well as the Milos resource HTTP handler in the web.config (which you should always have anyway). So the web.config needs to have this:&lt;/p&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515 face="Courier New"&gt;httpHandlers&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Other stuff here... --&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;add&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;verb&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;*&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;path&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;Milos_simplewebcontrols_*.aspx&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font color=#ff0000&gt;&lt;font color=#ff0000&gt;type&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;=&lt;/font&gt;&lt;/font&gt;"&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;EPS.Web.SimpleControls.ResourceRequestHandler,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SimpleWebControls&lt;/font&gt;&lt;/font&gt;"&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;/&amp;gt;&lt;br&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color=#a31515&gt;&lt;font color=#a31515&gt;httpHandlers&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;With this in place, you can simply add a &amp;lt;script&amp;gt; element to your page to get the jQuery features:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;&amp;lt;&lt;/font&gt;&lt;font color=#a52a2a&gt;script&lt;/font&gt; &lt;br&gt;&amp;nbsp; &lt;font color=#ff0000&gt;src&lt;/font&gt;&lt;font color=#0000ff&gt;="&lt;/font&gt;&lt;font color=#0000ff&gt;milos_simplewebcontrols_getresource.aspx?resourcetype=Script&amp;amp;resourcename=JQuery&lt;/font&gt;&lt;font color=#0000ff&gt;"&lt;/font&gt; &lt;br&gt;&amp;nbsp; &lt;font color=#ff0000&gt;type&lt;/font&gt;&lt;font color=#0000ff&gt;="&lt;/font&gt;&lt;font color=#0000ff&gt;text/javascript&lt;/font&gt;&lt;font color=#0000ff&gt;"&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color=#a52a2a&gt;script&lt;/font&gt;&lt;font color=#0000ff&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;em&gt;Note: This aspx page does not really exist. Whenever this URL gets hit, Milos intercepts the call and returns a dynamically generated script stream to the client.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With this in place, you can now add jQuery stuff like this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;$(document).ready(&lt;font color=#0000ff&gt;function&lt;/font&gt;() {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;alert&lt;/font&gt;(&lt;font color=#8b0000&gt;"Main document content loaded!"&lt;/font&gt;);&lt;br&gt;});&lt;br&gt;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;For more information on jQuery syntax and features, visit &lt;a href="http://www.jscript.com/"&gt;www.jscript.com&lt;/a&gt;, or get one of the many jQuery books out there (the jQuery site lists several). 
&lt;p&gt;Note: Milos also uses jQuery features for some of its advanced scripting. For this reason, it could happen that the script reference gets included multiple times, which could lead to unexpected results. For that reason it is better to add the script reference in the Load() event of the page (or a control) using this code:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt; (!Page.ClientScript.IsClientScriptIncludeRegistered(&lt;/font&gt;&lt;font color=#a31515 size=2&gt;&lt;font color=#a31515 size=2&gt;"JQuery"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;))&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;page.ClientScript.RegisterClientScriptInclude(&lt;/font&gt;&lt;font color=#a31515 size=2&gt;&lt;font color=#a31515 size=2&gt;"JQuery"&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;,&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color=#a31515 size=2&gt;&lt;font color=#a31515 size=2&gt;"milos_simplewebcontrols_getresource.aspx?resourcetype=Script&amp;amp;resourcename=JQuery"&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;font face="Courier New"&gt;);&lt;br&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/p&gt;This automatically adds the script reference from above, but it only adds it if the reference isn't there already. 
&lt;p&gt;&lt;/p&gt;There is a lot of cool stuff that can be done with jQuery, from simplified event handling to&amp;nbsp;relatively advanced (for HTML) visual effects. Milos uses this for a number of things, such as the cool new overlay dialogs. But that is a topic of a different post... :-) 
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 1:03 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=29318330-7996-4dc4-895e-3ef6125acd7a</comments></item><item><title>Lessons learned - Little new ones, big old ones</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=696a6f34-0f89-4dbd-a212-ec1ff24b6fa6</link><author>tchichester@eps-software.com</author><pubDate>Fri, 4 Apr 2008 21:13:44 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/696a6f34-0f89-4dbd-a212-ec1ff24b6fa6</guid><description>&lt;h1&gt;Lessons learned - Little new ones, big old ones&lt;/h1&gt;&lt;p&gt;&lt;span style="COLOR: #002060"&gt;&lt;font size=3&gt;&lt;font face=Calibri&gt;We’ve got an in-house application that we’re working on as a training exercise.&amp;nbsp; Like most projects of this type we find ourselves relearning old lessons.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: 115%"&gt;&lt;span style="COLOR: #002060"&gt;&lt;font size=3&gt;&lt;font face=Calibri&gt;We wanted to extend the functionality of the standard windows DateTimePicker control by creating a new composite control with a DateTimePicker and adding spinners for hours/minutes.&amp;nbsp; We started out with the DateTimePicker and two spinners (pretty obvious first step) and gave the class a DateTime property to hold the core DateTime value.&amp;nbsp; We then data bound the DateTimePicker and the two spinners to the DateTime property.&amp;nbsp; The DateTimePicker was bound to the DateTime property and the spinners were hooked up to the hour or minute components of class’ DateTime property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: 115%"&gt;&lt;span style="COLOR: #002060"&gt;&lt;font size=3&gt;&lt;font face=Calibri&gt;We wired everything up and tried running the shell application.&amp;nbsp; Every time we touched the composite control we got exceptions revolving around one of the constituent controls (dtPicker or spinner) having a null value.&amp;nbsp; Mike Yeager wandered in and made the fateful observation that we had “grossly over engineered” the composite control by having each constituent control separately data bound to the same property.&amp;nbsp; After all, the entire DateTime value was stored within the dateTimePicker control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: 115%"&gt;&lt;span style="COLOR: #002060"&gt;&lt;font size=3&gt;&lt;font face=Calibri&gt;We removed the databinding of the two spinners to the DateTime property and created properties for hours and minutes that were based on the existing hour/minute components of the dateTimePicker.&amp;nbsp; The getter of the hours/minutes properties returned the hour or minute component of the DateTime value in the dateTimePicker.&amp;nbsp; The setter of the properties called a method that concatenated the year/month/day components of the dateTimePicker with the values of the hour and minute spinners into a new DateTime value.&amp;nbsp; The spinners were hooked up to the hour and minute properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: 115%"&gt;&lt;span style="COLOR: #002060"&gt;&lt;font size=3&gt;&lt;font face=Calibri&gt;It took about 15 minutes to scrap the old code, reassemble the controls and properties, and then bind everything together.&amp;nbsp; It worked on the first try!&lt;br&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="COLOR: #002060"&gt;&lt;font size=3&gt;&lt;font face=Calibri&gt;
&lt;ul&gt;
&lt;li&gt;The “new” lesson learned was specific and almost trivial: When extending the functionality of a multi-faceted control, use that control’s internal value as the basis for your work rather than reinvent the (DateTime value) wheel by pushing three separate controls at one value.&lt;/li&gt;
&lt;li&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR: #002060"&gt;&lt;font size=3&gt;&lt;font face=Calibri&gt;The “old” lesson is: “Think about what you’re going to do before you even touch the keyboard.&amp;nbsp; You should have a clear vision of your objective before writing the first line of code."&lt;br&gt;&lt;br&gt;Claudio will be amplifying on this in his blog, complete with code samples.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 4:13 PM by Chichester, Thom (&lt;a href="mailto:tchichester@eps-software.com"&gt;tchichester@eps-software.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=696a6f34-0f89-4dbd-a212-ec1ff24b6fa6</comments></item><item><title>Exception Handling and Logging Framework</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=a1001c8f-0f3d-4c21-8926-57533b1218f0</link><author>markus@code-magazine.com</author><pubDate>Tue, 5 Feb 2008 22:55:36 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/a1001c8f-0f3d-4c21-8926-57533b1218f0</guid><description>&lt;h1&gt;Exception Handling and Logging Framework&lt;/h1&gt;&lt;p&gt;Milos has always provided features around exception handling. In this upcoming build however, we have formalized a lot of the functionality (and added to it as well) to create two distinct sub-frameworks:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;An Exception Handling framework&lt;/li&gt;
&lt;li&gt;A Logging framework&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;The idea is the exception logging framework is pretty simple: Whenever an exception occurs that remains unhandled, that exception can be "published" to the exception framework via a so-called "Exception Mediator" object. This object receives the exception and then passes it on to all kinds of interested listeners that can be registered with the mediator. Such listeners could be UI components to show exception information to the user (listener as well as UI components are provided by default and can be extended), or the information can be emailed to an administrator, or perhaps the information needs to be logged. The framework also includes components that can be used to retrieve detailed exception information such as an exception hierarchy or the current call stack.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;The logging framework can be used to log various information ("events") to different destinations. For instance, it is possible to log events to text files or XML files of various formats. It is also possible to log to the Windows system log on the local machine or a remote machine. Furthermore, it is possible to log to email recipients or the Console or message boxes, or... And of course, it is also possible to easily combine all these loggers and even extend them with your own. 
&lt;p&gt;&lt;/p&gt;In addition to the class reference that includes examples for all these features, we have also written 2 whitepapers that explain the use of these frameworks. 
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 4:55 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=a1001c8f-0f3d-4c21-8926-57533b1218f0</comments></item><item><title>Generic Sub Item Collections in Business Entities</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=9c2ead6c-716d-4232-bfdc-90db8fa2ff31</link><author>markus@code-magazine.com</author><pubDate>Thu, 17 Jan 2008 22:5:40 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/9c2ead6c-716d-4232-bfdc-90db8fa2ff31</guid><description>&lt;h1&gt;Generic Sub Item Collections in Business Entities&lt;/h1&gt;&lt;p&gt;The latest Milos version has a pretty neat enhancement in the business entity model: Sub item collections are now available as generics. Here's why that's cool:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;So far, in order to create collections of sub items in business entities ("1-to-many relationships"), one had to create the individual item objects, as well as a collection class that could hold those items. The trouble with that is that it is a lot of work to create the collection class, and the only benefit of this class is a strongly typed interface. (The strongly typed interface is needed so one can access parent.Children[x] and then get all the properties on that object). 
&lt;p&gt;&lt;/p&gt;Using the new generic version of the sub item collection, one usually does not have to create a subclass. Instead, one just creates the class for the individual items, and then instantiates the generic version of the collection, with the generic being the item type. 
&lt;p&gt;&lt;/p&gt;Example: An invoice entity with a line item collection could simply instantiate an appropriate collection like so: 
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;protected&amp;nbsp;override void&amp;nbsp; &lt;/font&gt;&lt;font color=#000000&gt;LoadSubItemCollections()&lt;/font&gt;&lt;br&gt;&lt;/font&gt;&lt;font color=#000000&gt;&lt;font face="Courier New"&gt;{&lt;br&gt;&lt;font color=#0000ff&gt;&amp;nbsp;&amp;nbsp; this&lt;/font&gt;.colLineItems = &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;new &lt;/font&gt;GenericEntitySubItemCollection&amp;lt;LineItem&amp;gt;(&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color=#0000ff&gt;this&lt;/font&gt;,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"PK_LineItem",&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"FK_Invoice",&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Invoices",&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"PK_Invoice",&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;this&lt;/font&gt;.GetInternalData().Tables["LineItems"] );&lt;br&gt;} 
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;For more details and a detailed explanation, consult the "How-To: Creating a&amp;nbsp;Collection of Child Items" topic in the Milos documentation. 
&lt;p&gt;&lt;/p&gt;Of course, the old way is still supported as well. The main benefit of using the generic version is in creating collections by hand. When using any of the code generator tools, one isn't exposed to the collection anyway (in most cases), so the benefit is minimal. So far, the code generator tools do not use the generic collection yet. There are considerations around backward compatibility. However, we are considering to change the tools in the future... 
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 4:05 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=9c2ead6c-716d-4232-bfdc-90db8fa2ff31</comments></item><item><title>IBindingList Support on Sub Item Collections</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=b385ffb3-9075-44ad-9199-fb826ee9813a</link><author>markus@code-magazine.com</author><pubDate>Wed, 5 Dec 2007 17:39:45 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/b385ffb3-9075-44ad-9199-fb826ee9813a</guid><description>&lt;h1&gt;IBindingList Support on Sub Item Collections&lt;/h1&gt;&lt;p&gt;Here is a small feature I really hope everyone appreciates, considering how hard it was to support it in a nice way: All sub item collections in Milos now implement IBindingList, which is a fancy way of saying that they can now be bound to pretty much anything that supports data binding.&lt;/p&gt;
&lt;p&gt;In the past, most of the Milos controls supported binding to&amp;nbsp;sub-item collections, but with third party controls, it was hit and miss. Adding support for this interface (in addition to the interfaces we supported previously) pretty much covers the whole range now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 11:39 AM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=b385ffb3-9075-44ad-9199-fb826ee9813a</comments></item><item><title>'Split-Table' Table Updated</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=d19d33c4-a743-4410-b59b-53298df6f698</link><author>markus@code-magazine.com</author><pubDate>Sat, 13 Oct 2007 16:48:47 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/d19d33c4-a743-4410-b59b-53298df6f698</guid><description>&lt;h1&gt;'Split-Table' Table Updated&lt;/h1&gt;&lt;p&gt;Here is a new feature that only some people will need, but those who need it &lt;em&gt;really&lt;/em&gt; do... ;-)&lt;/p&gt;
&lt;p&gt;The Milos BusinessObject class features a &lt;em&gt;SaveTable()&lt;/em&gt; method, with takes a &lt;em&gt;DataTable&lt;/em&gt; as a parameter (among other things) and can then (by means of using various &lt;em&gt;DataService&lt;/em&gt; features) simply persist all the changes in the data table back to the database server (whether that's SQL Server or some other database technology). This feature is used extensively by the &lt;em&gt;BusinessEntity&lt;/em&gt; infrastructure (among other things). So for instance, when you load a business entity that has a master table and several child tables, each of the tables inside the entity is saved using the &lt;em&gt;SaveTable()&lt;/em&gt; method.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;However, it has been brought to our attention that people sometimes like to load tables into entities or DataSets that are not just simple tables, but they may be created by joins that incorporate multiple tables. In that case the &lt;em&gt;SaveTable()&lt;/em&gt; method was not able to save the table, since every record in the &lt;em&gt;DataTable&lt;/em&gt; really mapped to different tables in the database. We have now added a feature to Milos that can handle this scenario in many (although not all!) cases. The basic idea is this: We provide a new SaveTable() overload with parameters that allow you to indicate which fields to include in the save operation, and what the table name maps to, and even field maps in case some of the fields are renamed. 
&lt;p&gt;&lt;/p&gt;So let's say you created a join that returned a table that has fields from a &lt;em&gt;Contacts&lt;/em&gt; table, such as &lt;em&gt;ContactID&lt;/em&gt; (maps to &lt;em&gt;ID&lt;/em&gt;), &lt;em&gt;FirstName&lt;/em&gt;, &lt;em&gt;LastName&lt;/em&gt;, and also fields from a 1:1 joined &lt;em&gt;CustomerInformation&lt;/em&gt; table like &lt;em&gt;CustomerID&lt;/em&gt; (maps to &lt;em&gt;ID&lt;/em&gt;), &lt;em&gt;CustomerNumber&lt;/em&gt; and &lt;em&gt;CreditLimit&lt;/em&gt;. You could save this information back to the database in a two-step operation, like so: 
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt;[] contactFields = &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#0000ff&gt;string&lt;/font&gt;[] { &lt;font color=#a52a2a&gt;"ContactID"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"FirstName"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"LastName"&lt;/font&gt;&amp;nbsp;};&lt;br&gt;&lt;font color=#008080&gt;Dictionary&lt;/font&gt;&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;, &lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;&amp;nbsp;contactFieldMaps = &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#008080&gt;Dictionary&lt;/font&gt;&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;, &lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;();&lt;br&gt;fieldMaps.Add(&lt;font color=#a52a2a&gt;"ContactID"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"ID"&lt;/font&gt;);&lt;br&gt;&lt;font color=#0000ff&gt;bool&lt;/font&gt; retVal = &lt;font color=#0000ff&gt;this&lt;/font&gt;.SaveTable(&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; existingDataSet.Tables[&lt;font color=#a52a2a&gt;"CustInfo"&lt;/font&gt;], &lt;font color=#a52a2a&gt;"ID"&lt;/font&gt;, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#a52a2a&gt;"Contacts"&lt;/font&gt;, contactFields, contactFieldMaps, &lt;font color=#0000ff&gt;false&lt;/font&gt;);&lt;br&gt;&lt;br&gt;&lt;font color=#0000ff&gt;if&lt;/font&gt; (retVal)&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;string&lt;/font&gt;[] contactFields = &lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#0000ff&gt;string&lt;/font&gt;[] &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;font color=#a52a2a&gt;"CustomerID"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"CustomerNumber"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"CreditLimit"&lt;/font&gt;&amp;nbsp;};&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#008080&gt;Dictionary&lt;/font&gt;&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;, &lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;&amp;nbsp;contactFieldMaps = &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#008080&gt;Dictionary&lt;/font&gt;&amp;lt;&lt;font color=#0000ff&gt;string&lt;/font&gt;, &lt;font color=#0000ff&gt;string&lt;/font&gt;&amp;gt;();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldMaps.Add(&lt;font color=#a52a2a&gt;"CustomerID"&lt;/font&gt;, &lt;font color=#a52a2a&gt;"ID"&lt;/font&gt;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;bool&lt;/font&gt; retVal = &lt;font color=#0000ff&gt;this&lt;/font&gt;.SaveTable(&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; existingDataSet.Tables[&lt;font color=#a52a2a&gt;"CustInfo"&lt;/font&gt;], &lt;font color=#a52a2a&gt;"ID"&lt;/font&gt;, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#a52a2a&gt;"CustomerInformation"&lt;/font&gt;, contactFields, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contactFieldMaps, &lt;font color=#0000ff&gt;true&lt;/font&gt;);&lt;br&gt;}&lt;/font&gt;&lt;br&gt;
&lt;p&gt;In this example, the first SaveTable() operation is limited to the &lt;em&gt;ContactID&lt;/em&gt;, &lt;em&gt;FirstName&lt;/em&gt;, and &lt;em&gt;LastName&lt;/em&gt; fields. Also, the primary key for the &lt;em&gt;Contacts&lt;/em&gt; table is really &lt;em&gt;ID&lt;/em&gt;, so we create a map for that. (This works for all fields, not just primary keys). If that save is successful, we perform a second save operation for the remaining fields. Not that in the second operation, we pass a &lt;em&gt;true&lt;/em&gt; as the last parameter, which flags the data table as unchanged in memory (this is not done after the first save, since other changes still exist).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;So this works nicely, but there are a few things you need to know. First, this works best if the table contains 1:1 relationship data. In one-to-many scenarios, the parent "record" exists multiple times, and thus really shouldn't be updated. You can still use the same functionality to update the information from the second part of the table, but you should be very careful updating the parent information, since it will potentially result in multiple updates that can each override each other. Another potential issue is that in memory, each record only has one record state. So the record is either flagged as &lt;em&gt;unchanged&lt;/em&gt;, &lt;em&gt;deleted&lt;/em&gt;, &lt;em&gt;modified&lt;/em&gt;, or &lt;em&gt;added&lt;/em&gt;. However, if the parent-part is modified, but the child-part should be considered added, then that would not work and the generated update statements would be incorrect and potentially fail, or - worse - cause incorrect data to be written to the database. So be careful with that. 
&lt;p&gt;&lt;/p&gt;One aspect of this that isn't immediately obvious is that this new functionality can also be used in scenarios where you just query a single table, but the update needs to map field names, or limit the update to certain fields. For instance, if an empty string array of field names is passed to this method and a mapping dictionary is passed, then all fields will be saved, but they can be mapped. Or, you can pass an empty dictionary, but pass a limiting list of field names, to exclude certain fields from update. Both scenarios can be very useful in a number of scenarios. 
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 11:48 AM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=d19d33c4-a743-4410-b59b-53298df6f698</comments></item><item><title>Minor String-Array Helper Method</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=4b629e6d-861c-4084-993a-271150c26052</link><author>markus@code-magazine.com</author><pubDate>Fri, 12 Oct 2007 19:26:41 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/4b629e6d-861c-4084-993a-271150c26052</guid><description>&lt;h1&gt;Minor String-Array Helper Method&lt;/h1&gt;&lt;p&gt;This is a pretty small item, but I find it useful in a lot of scenarios: There now is a new ArrayContainsString() method on the StringHelper object. It provides a quick way to check whether a certain string array contains a certain string, and it can do so in a case insensitive fashion:&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#0000ff&gt;string&lt;/font&gt;[] testArray = &lt;font color=#0000ff&gt;new string&lt;/font&gt;[] { &lt;font color=#8b0000&gt;"One"&lt;/font&gt;, &lt;font color=#8b0000&gt;"Two"&lt;/font&gt;, &lt;font color=#8b0000&gt;"Three"&lt;/font&gt; };&lt;br&gt;&lt;font color=#0000ff&gt;bool&lt;/font&gt; result1 = &lt;font color=#008080&gt;StringHelper&lt;/font&gt;.ArrayContainsString(testArray, &lt;font color=#8b0000&gt;"one"&lt;/font&gt;, &lt;font color=#0000ff&gt;true&lt;/font&gt;); &lt;font color=#008000&gt;// returns true&lt;/font&gt;&lt;br&gt;&lt;font color=#0000ff&gt;bool&lt;/font&gt; result2 = &lt;font color=#008080&gt;StringHelper&lt;/font&gt;.ArrayContainsString(testArray, &lt;font color=#8b0000&gt;"one"&lt;/font&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#008000&gt;// returns false&lt;/font&gt;&lt;br&gt;&lt;font color=#0000ff&gt;bool&lt;/font&gt; result3 = &lt;font color=#008080&gt;StringHelper&lt;/font&gt;.ArrayContainsString(testArray, &lt;font color=#8b0000&gt;"One"&lt;/font&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#008000&gt;// returns true&lt;br&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;bool&lt;/font&gt; result4 = &lt;font color=#008080&gt;StringHelper&lt;/font&gt;.ArrayContainsString(testArray, &lt;font color=#8b0000&gt;"Four"&lt;/font&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#008000&gt;// returns false&lt;br&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;As I said, this is not an earth-shaking feature, but it is kinda nifty...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;Posted @ 2:26 PM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=4b629e6d-861c-4084-993a-271150c26052</comments></item><item><title>Automatic Window Title Updates on Navigation</title><link>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=62e246c3-95bd-453c-ae2e-ce31b1ca3860</link><author>markus@code-magazine.com</author><pubDate>Sun, 9 Sep 2007 8:9:34 GMT</pubDate><guid isPermaLink="false">http://www.MilosSolutionPlatform.com/rss/62e246c3-95bd-453c-ae2e-ce31b1ca3860</guid><description>&lt;h1&gt;Automatic Window Title Updates on Navigation&lt;/h1&gt;&lt;p&gt;Here is a small but nice tweak: When using navigation UIs, in particular the Office application forms, or the Developer Express application forms, Milos now supports automatic updates of the windows title (the secondary title, actually), from the pane's caption (the pane the user navigates to). This behavior is optional, and can be controlled by means of the &lt;em&gt;UpdateWindowSubTitleFromNavigation&lt;/em&gt; property, which can be found on all app form classes. &lt;/p&gt;
&lt;p&gt;Note: Related to this change is an update to the &lt;em&gt;INavigationHost&lt;/em&gt; interface, which now features a &lt;em&gt;NavigationCompleted&lt;/em&gt; event. If you implement this interface somewhere, you simply need to add that event to your implementation as well. The code required to do so is simple: &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#808080&gt;/// &amp;lt;summary&amp;gt;&lt;br&gt;/// &lt;font color=#008000&gt;Occurs after a navigation.&lt;br&gt;&lt;/font&gt;/// &amp;lt;/summary&amp;gt;&lt;br&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;public event&lt;/font&gt; System.&lt;font color=#87ceeb&gt;EventHandler&lt;/font&gt; NavigationComplete;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&lt;/p&gt;Whether you actually use the event or not&amp;nbsp;is up to you. However, we recommend&amp;nbsp;you call if after navigating, which is done in the Navigate() method that&amp;nbsp;goes with the same interface. Here is the new standard implementation for that method:&amp;nbsp; 
&lt;p&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color=#808080&gt;/// &amp;lt;summary&amp;gt;&lt;br&gt;/// &lt;font color=#008000&gt;Triggers a navigation based on the specified URI&lt;br&gt;&lt;/font&gt;/// &amp;lt;/summary&amp;gt;&lt;br&gt;/// &amp;lt;param name="uri"&amp;gt;&lt;font color=#008000&gt;URI to navigate to&lt;/font&gt;&amp;lt;/param&amp;gt;&lt;br&gt;/// &amp;lt;param name="ignoreNavigationHistory"&amp;gt;&lt;font color=#008000&gt;Defines whether the current navigation needs&lt;br&gt;&lt;/font&gt;///&lt;font color=#008000&gt; to be added to the navigation history. For instance, a go-back operation is already&lt;/font&gt; &lt;br&gt;///&lt;font color=#008000&gt; in the history and thus does not have to be added, while a navigation to a new location &lt;br&gt;&lt;/font&gt;/// &lt;font color=#008000&gt;has to be added to the history.&lt;/font&gt;&amp;lt;/param&amp;gt;&lt;br&gt;/// &amp;lt;returns&amp;gt;&lt;font color=#008000&gt;True if navigation is successful&lt;/font&gt;&amp;lt;/returns&amp;gt;&lt;br&gt;&lt;/font&gt;&lt;font color=#0000ff&gt;public bool &lt;/font&gt;Navigate(&lt;font color=#0000ff&gt;string&lt;/font&gt; uri, &lt;font color=#0000ff&gt;bool &lt;/font&gt;ignoreNavigationHistory)&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;bool&lt;/font&gt; retVal = &lt;font color=#87ceeb&gt;NavigationHelper&lt;/font&gt;.Navigate(uri, &lt;font color=#0000ff&gt;this&lt;/font&gt;.History, &lt;font color=#0000ff&gt;this&lt;/font&gt;, ignoreHistory, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;this&lt;/font&gt;.ForwardControls, &lt;font color=#0000ff&gt;this&lt;/font&gt;.BackwardControls, &lt;font color=#0000ff&gt;this&lt;/font&gt;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;if&lt;/font&gt; (&lt;font color=#0000ff&gt;this&lt;/font&gt;.NavigationComplete != &lt;font color=#0000ff&gt;null&lt;/font&gt;)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;this&lt;/font&gt;.NavigationComplete(&lt;font color=#0000ff&gt;this&lt;/font&gt;, &lt;font color=#0000ff&gt;new &lt;/font&gt;&lt;font color=#87ceeb&gt;EventArgs&lt;/font&gt;());&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;return&lt;/font&gt; retVal;&lt;br&gt;}&lt;/font&gt;&amp;nbsp; 
&lt;p&gt;&lt;/p&gt;That's it! Small change, but nice to have. 
&lt;p&gt;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Posted @ 3:09 AM by Egger, Markus (&lt;a href="mailto:markus@code-magazine.com"&gt;markus@code-magazine.com&lt;/a&gt;)</description><comments>http://www.MilosSolutionPlatform.com/MilosBlog.aspx?messageid=62e246c3-95bd-453c-ae2e-ce31b1ca3860</comments></item></channel></rss>