<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Binding UI Events from View to commands in ViewModel in Silverlight 4</title>
	<atom:link href="http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/</link>
	<description>and ideas for its refactoring...</description>
	<lastBuildDate>Thu, 26 Jan 2012 18:27:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: hi</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-10401</link>
		<dc:creator>hi</dc:creator>
		<pubDate>Sat, 01 Oct 2011 08:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-10401</guid>
		<description>your code is very good,but i have a question hot to determaine sepecific control events,for example loastfocus for a textbox</description>
		<content:encoded><![CDATA[<p>your code is very good,but i have a question hot to determaine sepecific control events,for example loastfocus for a textbox</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcelo Khatcherian</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-9878</link>
		<dc:creator>Marcelo Khatcherian</dc:creator>
		<pubDate>Tue, 13 Sep 2011 19:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-9878</guid>
		<description>Which was sort of inspiring! Totally unforeseen. Now I understand what I am going to do tomorrow :)</description>
		<content:encoded><![CDATA[<p>Which was sort of inspiring! Totally unforeseen. Now I understand what I am going to do tomorrow <img src='http://blog.roboblob.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roboblob</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-9565</link>
		<dc:creator>roboblob</dc:creator>
		<pubDate>Wed, 24 Aug 2011 09:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-9565</guid>
		<description>Yes very often i ask myself the same question. Why i need to add so much code for such simple functionality like handling ui event etc.
MVVM is also often called &#039;programming for masochists&#039; :)
But seriously there are many reasons why this is good. Its hard to create all this infrastructure but once its there you can just use it 
but it gives you separation from UI, testability, you can easily replace parts of functionality because its decoupled etc.
But if you feel this is not your cup of tea simply skip it and do what many programmers do: just write it...
But don&#039;t forget: usually when you &#039;just code&#039; without plan or patterns later you pay the price when you need to maintain this.
Good luck!</description>
		<content:encoded><![CDATA[<p>Yes very often i ask myself the same question. Why i need to add so much code for such simple functionality like handling ui event etc.<br />
MVVM is also often called &#8216;programming for masochists&#8217; <img src='http://blog.roboblob.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
But seriously there are many reasons why this is good. Its hard to create all this infrastructure but once its there you can just use it<br />
but it gives you separation from UI, testability, you can easily replace parts of functionality because its decoupled etc.<br />
But if you feel this is not your cup of tea simply skip it and do what many programmers do: just write it&#8230;<br />
But don&#8217;t forget: usually when you &#8216;just code&#8217; without plan or patterns later you pay the price when you need to maintain this.<br />
Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josef</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-9564</link>
		<dc:creator>Josef</dc:creator>
		<pubDate>Wed, 24 Aug 2011 07:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-9564</guid>
		<description>I&#039;m trying to learn wpf and MVVM and i&#039;m getting tired of all the additional code you need to wire up commands ,events etc to the viewmodel.

here 
http://marlongrech.wordpress.com/2008/12/04/attachedcommandbehavior-aka-acb/#comment-4596 
is an example that requires 4 classes and 300 lines of code just so you can wire up an event from the view to the view model.  

Why do i need to include the MVVM light toolkit or BLEND sdk to do what takes one line in code behind...where or where is the benefit other than adhering to the MVVM dogma ?

Any command, method , event in the view should be able to be bound in a single line to a corresponding method, property etc in the view model without creating a mini project.</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to learn wpf and MVVM and i&#8217;m getting tired of all the additional code you need to wire up commands ,events etc to the viewmodel.</p>
<p>here<br />
<a href="http://marlongrech.wordpress.com/2008/12/04/attachedcommandbehavior-aka-acb/#comment-4596" rel="nofollow">http://marlongrech.wordpress.com/2008/12/04/attachedcommandbehavior-aka-acb/#comment-4596</a><br />
is an example that requires 4 classes and 300 lines of code just so you can wire up an event from the view to the view model.  </p>
<p>Why do i need to include the MVVM light toolkit or BLEND sdk to do what takes one line in code behind&#8230;where or where is the benefit other than adhering to the MVVM dogma ?</p>
<p>Any command, method , event in the view should be able to be bound in a single line to a corresponding method, property etc in the view model without creating a mini project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roboblob</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-4200</link>
		<dc:creator>roboblob</dc:creator>
		<pubDate>Fri, 21 Jan 2011 08:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-4200</guid>
		<description>Hi Stephane,

this actually works with Prism 4, just add the dll&#039;s from this project to your Prism 4 project and use the same XAML and code and it will work without any problem.</description>
		<content:encoded><![CDATA[<p>Hi Stephane,</p>
<p>this actually works with Prism 4, just add the dll&#8217;s from this project to your Prism 4 project and use the same XAML and code and it will work without any problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephane Touya</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-4196</link>
		<dc:creator>Stephane Touya</dc:creator>
		<pubDate>Fri, 21 Jan 2011 07:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-4196</guid>
		<description>Hi,

Can you make this work with Prism 4?

Thanks :-)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can you make this work with Prism 4?</p>
<p>Thanks <img src='http://blog.roboblob.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar Fortuny</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-2593</link>
		<dc:creator>Oscar Fortuny</dc:creator>
		<pubDate>Tue, 09 Nov 2010 11:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-2593</guid>
		<description>THANK YOU !!!

Your project runs perfectly. The best resource that i found.

Thank you very much.</description>
		<content:encoded><![CDATA[<p>THANK YOU !!!</p>
<p>Your project runs perfectly. The best resource that i found.</p>
<p>Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roboblob</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-2361</link>
		<dc:creator>roboblob</dc:creator>
		<pubDate>Sat, 30 Oct 2010 09:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-2361</guid>
		<description>Hi Aubrey,

thank you very much for your feedback and for pointing that issue out i will check it and update the code and sample if needed.</description>
		<content:encoded><![CDATA[<p>Hi Aubrey,</p>
<p>thank you very much for your feedback and for pointing that issue out i will check it and update the code and sample if needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aubrey Taylor</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-2357</link>
		<dc:creator>Aubrey Taylor</dc:creator>
		<pubDate>Sat, 30 Oct 2010 00:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-2357</guid>
		<description>Great post thank you very much, just what I was looking for. 

I did find an error however and thought you would like to know.

When I tried to run a command that implemented a canExecuteAction I encountered a casting error. This is probably better explained in code. I have included my fix as well. Here is the Pastie.

http://pastie.org/1259256</description>
		<content:encoded><![CDATA[<p>Great post thank you very much, just what I was looking for. </p>
<p>I did find an error however and thought you would like to know.</p>
<p>When I tried to run a command that implemented a canExecuteAction I encountered a casting error. This is probably better explained in code. I have included my fix as well. Here is the Pastie.</p>
<p><a href="http://pastie.org/1259256" rel="nofollow">http://pastie.org/1259256</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roboblob</title>
		<link>http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverlight-4/comment-page-1/#comment-1463</link>
		<dc:creator>roboblob</dc:creator>
		<pubDate>Fri, 06 Aug 2010 08:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.roboblob.com/?p=171#comment-1463</guid>
		<description>Glad you liked it.

Please post some links if you have some examples of your work or if you reuse ideas from this blog on some project etc it would nice to see that.

Thanks for your feedback!</description>
		<content:encoded><![CDATA[<p>Glad you liked it.</p>
<p>Please post some links if you have some examples of your work or if you reuse ideas from this blog on some project etc it would nice to see that.</p>
<p>Thanks for your feedback!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

