<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Learning in progress</title>
	<atom:link href="http://kishordaher.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kishordaher.wordpress.com</link>
	<description>With great power comes great responsibility.</description>
	<lastBuildDate>Fri, 04 Dec 2009 14:51:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='kishordaher.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d482b730b4a54c6497362ae9e2e29418?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Learning in progress</title>
		<link>http://kishordaher.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kishordaher.wordpress.com/osd.xml" title="Learning in progress" />
		<item>
		<title>WPF Dynamic Data Display.</title>
		<link>http://kishordaher.wordpress.com/2009/12/04/wpf-dynamic-data-display/</link>
		<comments>http://kishordaher.wordpress.com/2009/12/04/wpf-dynamic-data-display/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 14:51:32 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=165</guid>
		<description><![CDATA[Found this amazing library for dynamic data display developed by Computational Science Laboratory in Microsoft Research. It features efficient binding mechanisms and real-time interactivity capable of charting millions of data points. WPF developers in finance should have a look at this.
http://www.codeplex.com/dynamicdatadisplay
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=165&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Found this amazing library for dynamic data display developed by Computational Science Laboratory in Microsoft Research. It features efficient binding mechanisms and real-time interactivity capable of charting millions of data points. WPF developers in finance should have a look at this.</p>
<p><a href="http://www.codeplex.com/dynamicdatadisplay">http://www.codeplex.com/dynamicdatadisplay</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=165&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/12/04/wpf-dynamic-data-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>CSLA.Net framework for developing business objects.</title>
		<link>http://kishordaher.wordpress.com/2009/11/21/csla-net-framework-for-developing-business-objects/</link>
		<comments>http://kishordaher.wordpress.com/2009/11/21/csla-net-framework-for-developing-business-objects/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:43:43 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=161</guid>
		<description><![CDATA[I have been fan of CSLA.Net(component-based, scalable, logical architecture) framework since early days of my career had ported it from VB.Net to C# then. This framework comes handy for development of N-Tier architecture. Following are the feature highlights.



Tracking Broken Business Rules
Tracking Whether the Object Has Changed
Strongly Typed Collections of Child Objects
Simple and Abstract Model for the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=161&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste">I have been fan of CSLA.Net(component-based, scalable, logical architecture) framework since early days of my career had ported it from VB.Net to C# then. This framework comes handy for development of N-Tier architecture. Following are the feature highlights.</div>
<div>
<div>
<ol>
<li>Tracking Broken Business Rules</li>
<li>Tracking Whether the Object Has Changed</li>
<li>Strongly Typed Collections of Child Objects</li>
<li>Simple and Abstract Model for the UI Developer</li>
<li>Supporting Data Binding</li>
<li>Object Persistence and Object-Relational Mapping .</li>
<li>Business Object Creation</li>
<li>N-Level Undo Functionality</li>
<li>Data Binding Support</li>
<li>Validation Rules</li>
<li>Data Portal</li>
<li>Custom Authentication</li>
<li>Integrated Authorization</li>
</ol>
<p><a href="http://www.lhotka.net/">http://www.lhotka.net/</a></p>
<ol></ol>
</div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=161&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/11/21/csla-net-framework-for-developing-business-objects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Finally WPF/Sliverlight style generator.</title>
		<link>http://kishordaher.wordpress.com/2009/10/02/finally-wpfsliverlight-style-generator/</link>
		<comments>http://kishordaher.wordpress.com/2009/10/02/finally-wpfsliverlight-style-generator/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 04:16:10 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=157</guid>
		<description><![CDATA[I started this project last week and so far i was able to get Monochromatic, complimentary, Triad , Tetrads and analogous colors. The final goal of this project are as follows.

User should be able to view dark and light style with chosen color on predefined template. 
User should be able to generate ResourceDictionary for Silverlight/WPF [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=157&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I started this project last week and so far i was able to get Monochromatic, complimentary, Triad , Tetrads and analogous colors. The final goal of this project are as follows.</p>
<ol>
<li>User should be able to view dark and light style with chosen color on predefined template. </li>
<li>User should be able to generate ResourceDictionary for Silverlight/WPF out of the chosen color. (This would relieve every developer from pain of styling the application <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  trust me i know it) </li>
</ol>
<p><a href="http://kishordaher.files.wordpress.com/2009/10/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://kishordaher.files.wordpress.com/2009/10/image_thumb.png?w=510&#038;h=270" width="510" height="270" /></a></p>
<p>Coming soon on codeplex…….&#160; <a href="http://cid-7248f33fe35dbe24.skydrive.live.com/self.aspx/.Public/ColorWheel.zip" target="_blank">Download code.</a></p>
<p>Note: Please contribute to the project for the wellbeing of all the developers <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=157&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/10/02/finally-wpfsliverlight-style-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>

		<media:content url="http://kishordaher.files.wordpress.com/2009/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Security Essentials</title>
		<link>http://kishordaher.wordpress.com/2009/09/29/microsoft-security-essentials/</link>
		<comments>http://kishordaher.wordpress.com/2009/09/29/microsoft-security-essentials/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 15:55:54 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=152</guid>
		<description><![CDATA[Microsoft Security Essentials provides real-time protection for your home PC that guards against viruses, spyware, and other malicious software. It is available for free, for Windows XP 32-bit, Windows Vista/7 32-bit, and Windows Vista/7 64-bit.
http://www.microsoft.com/security_essentials/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=152&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Microsoft Security Essentials provides real-time protection for your home PC that guards against viruses, spyware, and other malicious software. It is available for free, for Windows XP 32-bit, Windows Vista/7 32-bit, and Windows Vista/7 64-bit.</p>
<p><a href="http://www.microsoft.com/security_essentials/">http://www.microsoft.com/security_essentials/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=152&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/09/29/microsoft-security-essentials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Project Tuva from microsoft research.</title>
		<link>http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/</link>
		<comments>http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 03:01:40 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/</guid>
		<description><![CDATA[http://research.microsoft.com/apps/tools/tuva/index.html
Microsoft research project tuva home page explains it like this:
“Project Tuva explores core scientific concepts and theories through presenting timeless videos with its new enchanced Video Player featuring searchable video, linked transcripts, notes, and interactive extras”
It was amazing to see and hear Dr. Richard Feynman’s lecture on “Law of Gravitation” at Cornell University in 1964.
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=150&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://research.microsoft.com/apps/tools/tuva/index.html">http://research.microsoft.com/apps/tools/tuva/index.html</a></p>
<p>Microsoft research project tuva home page explains it like this:</p>
<p>“Project Tuva explores core scientific concepts and theories through presenting timeless videos with its new enchanced Video Player featuring searchable video, linked transcripts, notes, and interactive extras”</p>
<p>It was amazing to see and hear Dr. Richard Feynman’s lecture on “Law of Gravitation” at Cornell University in 1964.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=150&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Why functional programming?</title>
		<link>http://kishordaher.wordpress.com/2009/09/17/why-functional-programming/</link>
		<comments>http://kishordaher.wordpress.com/2009/09/17/why-functional-programming/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 01:56:05 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Functional Programming]]></category>
		<category><![CDATA[Hakell]]></category>
		<category><![CDATA[Haskell]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=143</guid>
		<description><![CDATA[Functional programming is not a silver bullet, but learning it will indeed add to the knowledge of every software engineer about solving problem in different a way. One can always implement functional style of programming in any imperative language they use.
Advantages:

For analysis of mathematical problem that requires human analysts, it is possible to represent the problem [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=143&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Functional programming is not a silver bullet, but learning it will indeed add to the knowledge of every software engineer about solving problem in different a way. One can always implement functional style of programming in any imperative language they use.</p>
<p>Advantages:</p>
<ol>
<li>For analysis of mathematical problem that requires human analysts, it is possible to represent the problem in a concise mathematical form that analysts can understand.</li>
<li>A declarative language simplifies the creation and multiple interpretations and static analysis.</li>
<li>Compositional construction allows natural mapping of the problem domain and encourages code reuse.</li>
<li>Functional programming language like haskell makes maintenance easy due to its high level of abstraction which also makes addition of new features a lot simpler then it would be in any imperative language.</li>
<li>As most of the data types in functional languages are immutable concurrency and parallelism is integral art of the language. Most modern functional languages like Haskell and Erlang support multi-core without any extra libraries.</li>
<li>Its easy to implement domain-specific language.</li>
</ol>
<p>Disadvantages:</p>
<ol>
<li>Its difficult to get developers on functional languages and thus it adds to project risk.</li>
<li>UI development is not a proven ground in functional world.</li>
<li>Performance is real unknown for most functional languages as its not widely accepted in developing of large real time systems. <a href="http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&amp;lang=ghc&amp;lang2=gpp&amp;box=1" target="_blank">Haskell performance</a>. (i personally believe that with multi-core systems any problem needs to be parallelized and immutability is the only answer to that type problems. So even imperative languages have to make data structures immutable to solve the problem on multi-core.)</li>
</ol>
<p>Here is the implementation of Black Scholes model for European options in Haskell and C#. I wrote this example to show the difference between functional and imperative language, see it your self.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:8cd63bf3-2a2f-4527-8286-2f32607a156b" class="wlWriterEditableSmartContent" style="width:560px;display:block;float:none;margin-left:auto;margin-right:auto;padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;max-height:300px;overflow:auto;padding:0;">
<ol style="background:#ffffff;white-space:nowrap;margin:0 0 0 35px;">
<li style="background:#f3f3f3;"> type Put = String</li>
<li> type Call = String</li>
<li style="background:#f3f3f3;"> data Option = Call | Put</li>
<li> deriving (Eq, Show)</li>
<li> blackscholes :: Option -&gt; Double -&gt; Double -&gt; Double -&gt; Double -&gt; Double -&gt; Double</li>
<li style="background:#f3f3f3;"> blackscholes  option s x t r v</li>
<li> | option == Call = s * normcdf d1 &#8211; x*exp (-r*t) * normcdf d2</li>
<li style="background:#f3f3f3;"> | option == Put = x * exp (-r*t) * normcdf (-d2) &#8211; s * normcdf (-d1)</li>
<li> where</li>
<li style="background:#f3f3f3;"> d1 = ( log(s/x) + (r+v*v/2)*t )/(v*sqrt t)</li>
<li> d2 = d1 &#8211; v*sqrt t</li>
<li style="background:#f3f3f3;"> normcdf x</li>
<li> | x &lt; 0 = 1 &#8211; w</li>
<li style="background:#f3f3f3;"> | otherwise = w</li>
<li> where</li>
<li style="background:#f3f3f3;"> w = 1.0 &#8211; 1.0 / sqrt (2.0 * pi) * exp(-l*l / 2.0) * poly k</li>
<li> k = 1.0 / (1.0 + 0.2316419 * l)</li>
<li style="background:#f3f3f3;"> l = abs x</li>
<li> poly = horner coeff</li>
<li style="background:#f3f3f3;"> coeff = [0.0,0.31938153,-0.356563782,1.781477937,-1.821255978,1.330274429]</li>
<li style="background:#f3f3f3;"> horner coeff <span style="color:#0000ff;">base</span> = foldr1 multAdd  coeff</li>
<li> where</li>
<li style="background:#f3f3f3;"> multAdd x y = y*<span style="color:#0000ff;">base</span> + x</li>
</ol>
</div>
</div>
</div>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:c6670cec-e768-4d47-acd0-8226d681a432" class="wlWriterEditableSmartContent" style="width:536px;display:block;float:none;margin-left:auto;margin-right:auto;padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;max-height:300px;overflow:auto;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li> <span style="color:#0000ff;">namespace</span> BackScholes</li>
<li style="background:#f3f3f3;"> {</li>
<li> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">Program</span></li>
<li style="background:#f3f3f3;"> {</li>
<li> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Main(<span style="color:#0000ff;">string</span>[] args)</li>
<li style="background:#f3f3f3;"> {</li>
<li> }</li>
<li style="background:#f3f3f3;"> }</li>
<li> <span style="color:#0000ff;">enum</span> <span style="color:#2b91af;">Option</span></li>
<li style="background:#f3f3f3;"> {</li>
<li> Call,</li>
<li style="background:#f3f3f3;"> Put</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Summary description for BlackSholes.</span></li>
<li style="background:#f3f3f3;"> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">BlackSholes</span></li>
<li style="background:#f3f3f3;"> {</li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">double</span> BlackScholes(<span style="color:#2b91af;">Option</span> option, <span style="color:#0000ff;">double</span> S, <span style="color:#0000ff;">double</span> X,</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> T, <span style="color:#0000ff;">double</span> r, <span style="color:#0000ff;">double</span> v)</li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> d1 = 0.0;</li>
<li> <span style="color:#0000ff;">double</span> d2 = 0.0;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> dBlackScholes = 0.0;</li>
<li style="background:#f3f3f3;"> d1 = (Math.Log(S / X) + (r + v * v / 2.0) * T) / (v * Math.Sqrt(T));</li>
<li> d2 = d1 &#8211; v * Math.Sqrt(T);</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">if</span> (option == <span style="color:#2b91af;">Option</span>.Call)</li>
<li> {</li>
<li style="background:#f3f3f3;"> dBlackScholes = S * CND(d1) &#8211; X * Math.Exp(-r * T) * CND(d2);</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">else</span> <span style="color:#0000ff;">if</span> (option == <span style="color:#2b91af;">Option</span>.Put)</li>
<li> {</li>
<li style="background:#f3f3f3;"> dBlackScholes = X * Math.Exp(-r * T) * CND(-d2) &#8211; S * CND(-d1);</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">return</span> dBlackScholes;</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">double</span> CND(<span style="color:#0000ff;">double</span> X)</li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> L = 0.0;</li>
<li> <span style="color:#0000ff;">double</span> K = 0.0;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> dCND = 0.0;</li>
<li> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a1 = 0.31938153;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a2 = -0.356563782;</li>
<li> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a3 = 1.781477937;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a4 = -1.821255978;</li>
<li> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a5 = 1.330274429;</li>
<li style="background:#f3f3f3;"> L = Math.Abs(X);</li>
<li> K = 1.0 / (1.0 + 0.2316419 * L);</li>
<li style="background:#f3f3f3;"> dCND = 1.0 &#8211; 1.0 / Math.Sqrt(2 * Convert.ToDouble(Math.PI.ToString())) *</li>
<li> Math.Exp(-L * L / 2.0) * (a1 * K + a2 * K * K + a3 * Math.Pow(K, 3.0) +</li>
<li style="background:#f3f3f3;"> a4 * Math.Pow(K, 4.0) + a5 * Math.Pow(K, 5.0));</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">if</span> (X &lt; 0)</li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">return</span> 1.0 &#8211; dCND;</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">else</span></li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">return</span> dCND;</li>
<li> }</li>
<li style="background:#f3f3f3;"> }</li>
<li> }</li>
<li style="background:#f3f3f3;"> }</li>
</ol>
</div>
</div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=143&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/09/17/why-functional-programming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Dryad and DryadLinq release for academic community.</title>
		<link>http://kishordaher.wordpress.com/2009/07/19/dryad-and-dryadlinq-release-for-academic-community/</link>
		<comments>http://kishordaher.wordpress.com/2009/07/19/dryad-and-dryadlinq-release-for-academic-community/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 17:01:13 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=139</guid>
		<description><![CDATA[Microsoft&#8217;s answer to google map reduce and hadoop for distributed computing is Dryad.
http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=139&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Microsoft&#8217;s answer to google map reduce and hadoop for distributed computing is Dryad.</p>
<p><a href="http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx">http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=139&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/07/19/dryad-and-dryadlinq-release-for-academic-community/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>RoutedEvent to Command action behavior (Blend 3).</title>
		<link>http://kishordaher.wordpress.com/2009/07/18/routedevent-to-command-action-behavior-blend-3/</link>
		<comments>http://kishordaher.wordpress.com/2009/07/18/routedevent-to-command-action-behavior-blend-3/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 18:34:16 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Blend 3]]></category>
		<category><![CDATA[Mvvm]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=133</guid>
		<description><![CDATA[Blend 3 has added two new assemblies which consists of new functionalities including advance behaviors

Microsoft.Expression.Interactions.dll
System.Windows.Interactivity.dll

These advance behavior classes lets you create attached behaviors with simplicity. Code snippet below shows how to create a behavior which can be applied on any UIElement’s Routed event and when that event is triggered the given command is invoked with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=133&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Blend 3 has added two new assemblies which consists of new functionalities including advance behaviors</p>
<ol>
<li>Microsoft.Expression.Interactions.dll</li>
<li>System.Windows.Interactivity.dll</li>
</ol>
<p>These advance behavior classes lets you create attached behaviors with simplicity. Code snippet below shows how to create a behavior which can be applied on any UIElement’s Routed event and when that event is triggered the given command is invoked with its command parameters. These behaviors help us write clean code and we dont have to deal with click events when using M-V-vM pattern. We can wite our command and bind that command to any routed event on any user interface element and implement the command on view model.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:dd404715-7a4f-4c6d-a4a4-d4d590852755" class="wlWriterEditableSmartContent" style="padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li> <span style="color:#0000ff;">using</span> System;</li>
<li> <span style="color:#0000ff;">using</span> System.Windows;</li>
<li> <span style="color:#0000ff;">using</span> System.Windows.Input;</li>
<li> <span style="color:#0000ff;">using</span> System.Windows.Interactivity;</li>
<li> <span style="color:#0000ff;">using</span> EventTrigger = System.Windows.Interactivity.EventTrigger;</li>
<li> <span style="color:#0000ff;">namespace</span> Behaviors</li>
<li> {</li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Behaviour helps to bind any RoutedEvent of UIElement to Command.</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> [DefaultTrigger(<span style="color:#0000ff;">typeof</span>(UIElement), <span style="color:#0000ff;">typeof</span>(EventTrigger), <span style="color:#a31515;">"MouseLeftButtonDown"</span>)]</li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">ExecuteCommandAction</span> : TargetedTriggerAction&lt;UIElement&gt;</li>
<li> {</li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Dependency property represents the Command of the behaviour.</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">readonly</span> DependencyProperty CommandParameterProperty = DependencyProperty.RegisterAttached(</li>
<li> <span style="color:#a31515;">&#8220;CommandParameter&#8221;</span>,</li>
<li> <span style="color:#0000ff;">typeof</span>(<span style="color:#0000ff;">object</span>),</li>
<li> <span style="color:#0000ff;">typeof</span>(ExecuteCommandAction),</li>
<li> <span style="color:#0000ff;">new</span> FrameworkPropertyMetadata(<span style="color:#0000ff;">null</span>));</li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Dependency property represents the Command parameter of the behaviour.</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">readonly</span> DependencyProperty CommandProperty = DependencyProperty.RegisterAttached(</li>
<li> <span style="color:#a31515;">&#8220;Command&#8221;</span>,</li>
<li> <span style="color:#0000ff;">typeof</span>(ICommand),</li>
<li> <span style="color:#0000ff;">typeof</span>(ExecuteCommandAction),</li>
<li> <span style="color:#0000ff;">new</span> FrameworkPropertyMetadata(<span style="color:#0000ff;">null</span>));</li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Gets or sets the Commmand.</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> <span style="color:#0000ff;">public</span> ICommand Command</li>
<li> {</li>
<li> <span style="color:#0000ff;">get</span></li>
<li> {</li>
<li> <span style="color:#0000ff;">return</span> (ICommand)<span style="color:#0000ff;">this</span>.GetValue(CommandProperty);</li>
<li> }</li>
<li> <span style="color:#0000ff;">set</span></li>
<li> {</li>
<li> <span style="color:#0000ff;">this</span>.SetValue(CommandProperty, <span style="color:#0000ff;">value</span>);</li>
<li> }</li>
<li> }</li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Gets or sets the CommandParameter.</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">object</span> CommandParameter</li>
<li> {</li>
<li> <span style="color:#0000ff;">get</span></li>
<li> {</li>
<li> <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">this</span>.GetValue(CommandParameterProperty);</li>
<li> }</li>
<li> <span style="color:#0000ff;">set</span></li>
<li> {</li>
<li> <span style="color:#0000ff;">this</span>.SetValue(CommandParameterProperty, <span style="color:#0000ff;">value</span>);</li>
<li> }</li>
<li> }</li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Invoke method is called when the given routed event is fired.</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&#8221;parameter&#8221;&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Parameter is the sender of the event.</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/param&gt;</span></li>
<li> <span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">void</span> Invoke(<span style="color:#0000ff;">object</span> parameter)</li>
<li> {</li>
<li> <span style="color:#0000ff;">if</span> (<span style="color:#0000ff;">this</span>.Command != <span style="color:#0000ff;">null</span>)</li>
<li> {</li>
<li> <span style="color:#0000ff;">if</span> (<span style="color:#0000ff;">this</span>.Command.CanExecute(<span style="color:#0000ff;">this</span>.CommandParameter))</li>
<li> {</li>
<li> <span style="color:#0000ff;">this</span>.Command.Execute(<span style="color:#0000ff;">this</span>.CommandParameter);</li>
<li> }</li>
<li> }</li>
<li> }</li>
<li> }</li>
<li> \</li>
</ol>
</div>
</div>
</div>
<p>Once you create a class with the above code and open the project in blend and open any UI, you can see the following view in the asset tab. Marked in red is our behavior.</p>
<p><a href="http://kishordaher.files.wordpress.com/2009/07/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://kishordaher.files.wordpress.com/2009/07/image_thumb.png?w=244&#038;h=187" border="0" alt="image" width="244" height="187" /></a></p>
<p>Drop the behavior onto any UIElement</p>
<p><a href="http://kishordaher.files.wordpress.com/2009/07/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://kishordaher.files.wordpress.com/2009/07/image_thumb1.png?w=244&#038;h=139" border="0" alt="image" width="244" height="139" /></a></p>
<p>Finally you can see how we can select the Event and bind the command and command parameters in the properties tab.</p>
<p><a href="http://kishordaher.files.wordpress.com/2009/07/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" src="http://kishordaher.files.wordpress.com/2009/07/image_thumb2.png?w=205&#038;h=244" border="0" alt="image" width="205" height="244" /></a></p>
<p>XAML for above blend designer setting.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:29309f7a-7421-4a48-b48b-aa43477cf456" class="wlWriterEditableSmartContent" style="padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 25px;">
<li> <span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Grid</span><span style="color:#0000ff;">&gt;</span><span style="color:#a31515;"> </span></li>
<li> <span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">i</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">Interaction.Triggers</span><span style="color:#0000ff;">&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">i</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">EventTrigger</span><span style="color:#ff0000;"> EventName</span><span style="color:#0000ff;">=&#8221;MouseLeftButtonDown&#8221;&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Behaviours</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">ExecuteCommandAction Command=&#8221;{Binding MyCommand}&#8221; CommandParameter=&#8221;{Binding MyCommandParameter}&#8221;</span><span style="color:#0000ff;">/&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">i</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">EventTrigger</span><span style="color:#0000ff;">&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">i</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">Interaction.Triggers</span><span style="color:#0000ff;">&gt;</span><span style="color:#a31515;"> </span></li>
</ol>
</div>
</div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=133&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/07/18/routedevent-to-command-action-behavior-blend-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>

		<media:content url="http://kishordaher.files.wordpress.com/2009/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://kishordaher.files.wordpress.com/2009/07/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://kishordaher.files.wordpress.com/2009/07/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Design time support for Prism.</title>
		<link>http://kishordaher.wordpress.com/2009/07/01/design-time-support-for-prism/</link>
		<comments>http://kishordaher.wordpress.com/2009/07/01/design-time-support-for-prism/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 13:33:51 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[Prism]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=87</guid>
		<description><![CDATA[As we all know that Designer-Developer workflow is not feasible when the application is developed in Prism (Composite Application Guidance). Prism requires each use  case to have it&#8217;s functionality in different modules and load these modules at run-time.
Due to runtime loading of the user control neither Visual Studio or Blend can be used for implementing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=87&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As we all know that Designer-Developer workflow is not feasible when the application is developed in Prism (Composite Application Guidance). Prism requires each use  case to have it&#8217;s functionality in different modules and load these modules at run-time.</p>
<p>Due to runtime loading of the user control neither Visual Studio or Blend can be used for implementing designer-developer workflow as the user interface cannot be seen in its entirety.</p>
<p>Here is what i implemented with the help of <a href="http://blog.lab49.com/archives/author/marcja" target="_blank">Marc Jacobs</a> . We create an attached behavior that can be set on any ContentControl or ItemsControl. This attached behavior takes the user control which we need to display while design-time.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:3b932c01-6804-4e48-9a3a-91b688869748" class="wlWriterEditableSmartContent" style="padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> OnContentChanged(<span style="color:#2b91af;">DependencyObject</span> depObj, <span style="color:#2b91af;">DependencyPropertyChangedEventArgs</span> e)</li>
<li> {</li>
<li> <span style="color:#0000ff;">if</span> (<span style="color:#2b91af;">DesignerProperties</span>.GetIsInDesignMode(depObj))</li>
<li> {</li>
<li> <span style="color:#0000ff;">var</span> contentControl = depObj <span style="color:#0000ff;">as</span> <span style="color:#2b91af;">ContentControl</span>;</li>
<li> <span style="color:#0000ff;">if</span> (contentControl != <span style="color:#0000ff;">null</span>)</li>
<li> {</li>
<li> contentControl.Content = e.NewValue;</li>
<li> }</li>
<li> <span style="color:#0000ff;">else</span></li>
<li> {</li>
<li> <span style="color:#0000ff;">var</span> itemsControl = depObj <span style="color:#0000ff;">as</span> <span style="color:#2b91af;">ItemsControl</span>;</li>
<li> <span style="color:#0000ff;">if</span> (itemsControl != <span style="color:#0000ff;">null</span>)</li>
<li> {</li>
<li> itemsControl.Items.Add(e.NewValue);</li>
<li> }</li>
<li> }</li>
<li> }</li>
<li> \</li>
</ol>
</div>
</div>
</div>
<p>The magic happens in the <strong>OnContentChanged</strong> method, when we set the attached behavior content this method is invoked. The code inside the method only inserts the user control in the design mode.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:77d487ab-cb27-48e2-8c38-caee7fb3fc60" class="wlWriterEditableSmartContent" style="padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li> <span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Window</span><span style="color:#ff0000;"> x</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">Class</span><span style="color:#0000ff;">=&#8221;DesignTimePrism.ShellView&#8221;</span></li>
<li> <span style="color:#ff0000;"> xmlns</span><span style="color:#0000ff;">=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;</span></li>
<li> <span style="color:#ff0000;"> xmlns</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">x</span><span style="color:#0000ff;">=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;</span></li>
<li> <span style="color:#ff0000;"> xmlns</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">cal</span><span style="color:#0000ff;">=&#8221;http://www.codeplex.com/CompositeWPF&#8221;</span></li>
<li> <span style="color:#ff0000;"> xmlns</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">local</span><span style="color:#0000ff;">=&#8221;clr-namespace:DesignTimePrism&#8221;</span></li>
<li> <span style="color:#ff0000;"> xmlns</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">menu</span><span style="color:#0000ff;">=&#8221;clr-namespace:DesignTimePrism.Modules.Menu;assembly=DesignTimePrism.Modules.Menu&#8221;</span></li>
<li> <span style="color:#ff0000;"> xmlns</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">main</span><span style="color:#0000ff;">=&#8221;clr-namespace:DesignTimePrism.Modules.Main;assembly=DesignTimePrism.Modules.Main&#8221;</span></li>
<li> <span style="color:#ff0000;"> Title</span><span style="color:#0000ff;">=&#8221;Window1&#8243;</span><span style="color:#ff0000;"> Height</span><span style="color:#0000ff;">=&#8221;600&#8243;</span><span style="color:#ff0000;"> Width</span><span style="color:#0000ff;">=&#8221;600&#8243;&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Window.Resources</span><span style="color:#0000ff;">&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">main</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">MainView</span><span style="color:#ff0000;"> x</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">Key</span><span style="color:#0000ff;">=&#8221;mainView&#8221; /&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">menu</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">MenuView</span><span style="color:#ff0000;"> x</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">Key</span><span style="color:#0000ff;">=&#8221;menuView&#8221; /&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Window.Resources</span><span style="color:#0000ff;">&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Grid</span><span style="color:#0000ff;">&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Grid.ColumnDefinitions</span><span style="color:#0000ff;">&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ColumnDefinition</span><span style="color:#ff0000;"> Width</span><span style="color:#0000ff;">=&#8221;0.3*&#8221; /&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ColumnDefinition</span><span style="color:#ff0000;"> Width</span><span style="color:#0000ff;">=&#8221;0.7*&#8221; /&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Grid.ColumnDefinitions</span><span style="color:#0000ff;">&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ContentControl</span><span style="color:#ff0000;"> Grid.Column</span><span style="color:#0000ff;">=&#8221;0&#8243;</span></li>
<li> <span style="color:#ff0000;"> local</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">DesignTime.Content</span><span style="color:#0000ff;">=&#8221;{</span><span style="color:#a31515;">StaticResource</span><span style="color:#ff0000;"> mainView</span><span style="color:#0000ff;">}&#8221;</span></li>
<li> <span style="color:#ff0000;"> cal</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">RegionManager.RegionName</span><span style="color:#0000ff;">=&#8221;MenuRegion&#8221; /&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ContentControl</span><span style="color:#ff0000;"> Grid.Column</span><span style="color:#0000ff;">=&#8221;1&#8243;</span></li>
<li> <span style="color:#ff0000;"> local</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">DesignTime.Content</span><span style="color:#0000ff;">=&#8221;{</span><span style="color:#a31515;">StaticResource</span><span style="color:#ff0000;"> menuView</span><span style="color:#0000ff;">}&#8221;</span></li>
<li> <span style="color:#ff0000;"> cal</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">RegionManager.RegionName</span><span style="color:#0000ff;">=&#8221;MainRegion&#8221; /&gt;</span></li>
<li> <span style="color:#a31515;"> </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Grid</span><span style="color:#0000ff;">&gt;</span></li>
<li> &lt;/<span style="color:#a31515;">Window</span><span style="color:#0000ff;">&gt;</span></li>
</ol>
</div>
</div>
</div>
<p>The only downside of using this technique is having the user controls declared in the resource dictionary. Also below are the snapshots  of the application in design and runtime mode.</p>
<table border="0" cellspacing="0" cellpadding="2" width="523">
<tbody>
<tr>
<td width="254" valign="top">Design time snapshot</td>
<td width="267" valign="top">Runtime snapshot</td>
</tr>
<tr>
<td width="254" valign="top"><a href="http://kishordaher.files.wordpress.com/2009/07/designtime1.jpg"><img style="display:inline;border-width:0;" title="DesignTime" src="http://kishordaher.files.wordpress.com/2009/07/designtime_thumb1.jpg?w=240&#038;h=241" border="0" alt="DesignTime" width="240" height="241" /></a></td>
<td width="267" valign="top"><a href="http://kishordaher.files.wordpress.com/2009/07/runtime1.jpg"><img style="display:inline;border-width:0;" title="RunTime" src="http://kishordaher.files.wordpress.com/2009/07/runtime_thumb1.jpg?w=242&#038;h=242" border="0" alt="RunTime" width="242" height="242" /></a></td>
</tr>
</tbody>
</table>
<p>Code <a href="http://cid-7248f33fe35dbe24.skydrive.live.com/self.aspx/.Public/DesignTimePrism.zip">DesignTimePrism.zip</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=87&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/07/01/design-time-support-for-prism/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>

		<media:content url="http://kishordaher.files.wordpress.com/2009/07/designtime_thumb1.jpg" medium="image">
			<media:title type="html">DesignTime</media:title>
		</media:content>

		<media:content url="http://kishordaher.files.wordpress.com/2009/07/runtime_thumb1.jpg" medium="image">
			<media:title type="html">RunTime</media:title>
		</media:content>
	</item>
		<item>
		<title>Interactive Programming Flapjax</title>
		<link>http://kishordaher.wordpress.com/2009/06/24/interactive-programming-flapjax/</link>
		<comments>http://kishordaher.wordpress.com/2009/06/24/interactive-programming-flapjax/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 14:18:46 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=83</guid>
		<description><![CDATA[Flapjax is a new programming language based on interactive programming model. It is build as a framework on javascript and thus works with any web browser.
Its principal features include:

Event-driven, reactive evaluation
An event-stream abstraction for communicating with web services
Interfaces to external web services

http://www.flapjax-lang.org/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=83&subd=kishordaher&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Flapjax is a new programming language based on interactive programming model. It is build as a framework on javascript and thus works with any web browser.</p>
<p>Its principal features include:</p>
<ul>
<li>Event-driven, reactive evaluation</li>
<li>An event-stream abstraction for communicating with web services</li>
<li>Interfaces to external web services</li>
</ul>
<p><a href="http://www.flapjax-lang.org/">http://www.flapjax-lang.org/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&blog=7356419&post=83&subd=kishordaher&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/06/24/interactive-programming-flapjax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
	</channel>
</rss>