<?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: Very simple MVVM demo application</title>
	<atom:link href="http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/</link>
	<description>Jeremy Alles Presentation Foundation: WPF, Silverlight, Windows Phone 7, Windows 8</description>
	<lastBuildDate>Fri, 13 Jan 2012 15:59:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-2944</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 05 Apr 2011 14:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-2944</guid>
		<description>praveen,

This is not a design issue nor a bug. In WPF the CanExecute methods of your commands are called automatically as soon as the UI changes (for example you click on a button or the keyboard focus change). This is handled by the CommandManager class. When you run the application in debug with a breakpoint you can see the behavior you describe. I think this is because the UI is being shown and hidden. If you add a trace (like Console.WriteLine) I think you&#039;ll see much less call to the method.

In Silverlight this is different because the CommandManager class does not exist. But that&#039;s another story :-)</description>
		<content:encoded><![CDATA[<p>praveen,</p>
<p>This is not a design issue nor a bug. In WPF the CanExecute methods of your commands are called automatically as soon as the UI changes (for example you click on a button or the keyboard focus change). This is handled by the CommandManager class. When you run the application in debug with a breakpoint you can see the behavior you describe. I think this is because the UI is being shown and hidden. If you add a trace (like Console.WriteLine) I think you&#8217;ll see much less call to the method.</p>
<p>In Silverlight this is different because the CommandManager class does not exist. But that&#8217;s another story <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-2941</link>
		<dc:creator>praveen</dc:creator>
		<pubDate>Tue, 05 Apr 2011 10:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-2941</guid>
		<description>Hi Jeremy,

I am new to MVVM and tried your code.I have placed break point in side the below method to monitor the control flow .But when I debug it I saw the following method is hitting like in an infinite loop. 

        public bool CanExecute(object parameter)
        {
            return this.canExecute == null ? true : this.canExecute();
        }

Is that a design issue..? Or I am missing something. I have tried it in Visual Studio 2010 Professional edition in windows 7 machine.</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>I am new to MVVM and tried your code.I have placed break point in side the below method to monitor the control flow .But when I debug it I saw the following method is hitting like in an infinite loop. </p>
<p>        public bool CanExecute(object parameter)<br />
        {<br />
            return this.canExecute == null ? true : this.canExecute();<br />
        }</p>
<p>Is that a design issue..? Or I am missing something. I have tried it in Visual Studio 2010 Professional edition in windows 7 machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debashish Gupta</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1916</link>
		<dc:creator>Debashish Gupta</dc:creator>
		<pubDate>Mon, 02 Aug 2010 04:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1916</guid>
		<description>Hi Jermy , i saw MVVMlight Framework.But i have already developed a lot in Silverlight 4 . So i cannot move now to another Framework.When i try to use Silverlight 4 , I get the help of Commands . Now i am only left with CollectionViewSource.GetDefaultView(). If i get something equivalent in SL . As when i selecet any thing in my listbox , i cannot save the employee details in the details plain as a lost focus did not happen in the textbox of the details Tab.</description>
		<content:encoded><![CDATA[<p>Hi Jermy , i saw MVVMlight Framework.But i have already developed a lot in Silverlight 4 . So i cannot move now to another Framework.When i try to use Silverlight 4 , I get the help of Commands . Now i am only left with CollectionViewSource.GetDefaultView(). If i get something equivalent in SL . As when i selecet any thing in my listbox , i cannot save the employee details in the details plain as a lost focus did not happen in the textbox of the details Tab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1732</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 20 Jul 2010 08:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1732</guid>
		<description>This sample application is designed to work with WPF, not Silverlight. That&#039;s the reason why I&#039;m suggesting you to take a look at an MVVM framework which supports Silverlight.</description>
		<content:encoded><![CDATA[<p>This sample application is designed to work with WPF, not Silverlight. That&#8217;s the reason why I&#8217;m suggesting you to take a look at an MVVM framework which supports Silverlight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debashish Gupta</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1731</link>
		<dc:creator>Debashish Gupta</dc:creator>
		<pubDate>Tue, 20 Jul 2010 08:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1731</guid>
		<description>Hi Jeremy ,
Not sure , why are u telling me to use MVVM Framework.
As i see ur downloadable application works fine.
I cannot add dlls like PresentationFramework.dll etc.
Regards
Debashish.</description>
		<content:encoded><![CDATA[<p>Hi Jeremy ,<br />
Not sure , why are u telling me to use MVVM Framework.<br />
As i see ur downloadable application works fine.<br />
I cannot add dlls like PresentationFramework.dll etc.<br />
Regards<br />
Debashish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1729</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 20 Jul 2010 07:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1729</guid>
		<description>Debashish,

You don&#039;t have the exact same set of functionalities in Silverlight and WPF. That&#039;s why you have error with CommandManager and TypeDescription.

Please take a look at a MVVM frameworks which supports Silverlight in order to see a working implementation of the ICommand interface. For example, you can look at the MVVM Light Toolkit (http://mvvmlight.codeplex.com) and its RelayCommand class (http://mvvmlight.codeplex.com/SourceControl/changeset/view/47157#750822).

Hope this helps :)</description>
		<content:encoded><![CDATA[<p>Debashish,</p>
<p>You don&#8217;t have the exact same set of functionalities in Silverlight and WPF. That&#8217;s why you have error with CommandManager and TypeDescription.</p>
<p>Please take a look at a MVVM frameworks which supports Silverlight in order to see a working implementation of the ICommand interface. For example, you can look at the MVVM Light Toolkit (<a href="http://mvvmlight.codeplex.com" rel="nofollow">http://mvvmlight.codeplex.com</a>) and its RelayCommand class (<a href="http://mvvmlight.codeplex.com/SourceControl/changeset/view/47157#750822" rel="nofollow">http://mvvmlight.codeplex.com/SourceControl/changeset/view/47157#750822</a>).</p>
<p>Hope this helps <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debashish Gupta</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1722</link>
		<dc:creator>Debashish Gupta</dc:creator>
		<pubDate>Mon, 19 Jul 2010 14:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1722</guid>
		<description>Hi , I was trying to go through it.
But i could not make 
CommandManager.RequerySuggested += value; 
work as it was not able to find the CommandManager
-----------------
and 
if (TypeDescriptor.GetProperties(this)[propertyName]
in ViewModelBase
work as its not able to find the TypeDescriptor in System.ComponentModel.

I was trying to make a Silverlight Project and trying to make it run.

Regards
Debashish.</description>
		<content:encoded><![CDATA[<p>Hi , I was trying to go through it.<br />
But i could not make<br />
CommandManager.RequerySuggested += value;<br />
work as it was not able to find the CommandManager<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
and<br />
if (TypeDescriptor.GetProperties(this)[propertyName]<br />
in ViewModelBase<br />
work as its not able to find the TypeDescriptor in System.ComponentModel.</p>
<p>I was trying to make a Silverlight Project and trying to make it run.</p>
<p>Regards<br />
Debashish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1675</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Thu, 15 Jul 2010 12:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1675</guid>
		<description>Ok, I see now :) It changes but after selecting again from list. But in other way. So thank you very much :) My weekend will be happier thanks your article ! :) Have a nice weekend, too :)</description>
		<content:encoded><![CDATA[<p>Ok, I see now <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It changes but after selecting again from list. But in other way. So thank you very much <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  My weekend will be happier thanks your article ! <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Have a nice weekend, too <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1674</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 15 Jul 2010 12:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1674</guid>
		<description>I just did the test: if I change the second TextBox in the DetailView to display the Age property, and without the correct OnPropertyChanged, any changes in the first TextBox is not reflected in the second TextBox.

However, adding the OnPropertyChanged fix this issue.</description>
		<content:encoded><![CDATA[<p>I just did the test: if I change the second TextBox in the DetailView to display the Age property, and without the correct OnPropertyChanged, any changes in the first TextBox is not reflected in the second TextBox.</p>
<p>However, adding the OnPropertyChanged fix this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://www.japf.fr/2009/02/very-simple-mvvm-demo-application/comment-page-1/#comment-1673</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Thu, 15 Jul 2010 11:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=137#comment-1673</guid>
		<description>Thank You for help.

Unfortunately when I add second textbox linked with Age property everything works ok. So I convert ObservableCollection to List, and removed inheritance from ViemModelBase from MasterViewModel and it still works. I appreciate that you have time for me. I&#039;m very newbie.</description>
		<content:encoded><![CDATA[<p>Thank You for help.</p>
<p>Unfortunately when I add second textbox linked with Age property everything works ok. So I convert ObservableCollection to List, and removed inheritance from ViemModelBase from MasterViewModel and it still works. I appreciate that you have time for me. I&#8217;m very newbie.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

