<?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 for hardcodet.net</title>
	<atom:link href="http://www.hardcodet.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hardcodet.net</link>
	<description>Confessions of a Code Addict</description>
	<pubDate>Fri, 03 Feb 2012 17:06:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Finding Elements in the WPF Tree - Both Ways by Alex</title>
		<link>http://www.hardcodet.net/2009/06/finding-elements-in-wpf-tree-both-ways/comment-page-1#comment-9250</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 08 Nov 2011 19:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=575#comment-9250</guid>
		<description>Hi!
How about traversing the visual tree of a DataGrid? It doesn't work with VisualTreeHelper.I actually need to find all column headers, whether string, controls or datatemplates.</description>
		<content:encoded><![CDATA[<p>Hi!<br />
How about traversing the visual tree of a DataGrid? It doesn&#8217;t work with VisualTreeHelper.I actually need to find all column headers, whether string, controls or datatemplates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Lightweight Task Scheduling Library for .NET / Silverlight by Philipp Sumi</title>
		<link>http://www.hardcodet.net/2010/01/lightweight-task-slash-job-scheduling-with-silverlight-support/comment-page-1#comment-8997</link>
		<dc:creator>Philipp Sumi</dc:creator>
		<pubDate>Tue, 01 Nov 2011 01:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=727#comment-8997</guid>
		<description>&lt;a href="#comment-3732" rel="nofollow"&gt;@Stephen Kennedy&lt;/a&gt; 
Stephen,

I agree that there's value in removing canceled jobs right away, but a job is a very lightweight object, and the scheduler performs a self-test every 2 minutes to sanitize itself, so there's no risk of jobs lurking around. This justifies keeping things simple.
However, you nicely spotted the issue with the first evaluated job being canceled - this was a bug that has been fixed. Thanks!

Cheers,
Philipp</description>
		<content:encoded><![CDATA[<p><a href="#comment-3732" rel="nofollow">@Stephen Kennedy</a><br />
Stephen,</p>
<p>I agree that there&#8217;s value in removing canceled jobs right away, but a job is a very lightweight object, and the scheduler performs a self-test every 2 minutes to sanitize itself, so there&#8217;s no risk of jobs lurking around. This justifies keeping things simple.<br />
However, you nicely spotted the issue with the first evaluated job being canceled - this was a bug that has been fixed. Thanks!</p>
<p>Cheers,<br />
Philipp</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Lightweight Task Scheduling Library for .NET / Silverlight by Philipp Sumi</title>
		<link>http://www.hardcodet.net/2010/01/lightweight-task-slash-job-scheduling-with-silverlight-support/comment-page-1#comment-8996</link>
		<dc:creator>Philipp Sumi</dc:creator>
		<pubDate>Tue, 01 Nov 2011 01:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=727#comment-8996</guid>
		<description>&lt;a href="#comment-2656" rel="nofollow"&gt;@Fergus Bown&lt;/a&gt; 
Thanks for the hint, Fergus! This was clearly a bug. Fixed with the latest version.</description>
		<content:encoded><![CDATA[<p><a href="#comment-2656" rel="nofollow">@Fergus Bown</a><br />
Thanks for the hint, Fergus! This was clearly a bug. Fixed with the latest version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Anders Rune Jensen</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-8204</link>
		<dc:creator>Anders Rune Jensen</dc:creator>
		<pubDate>Sun, 09 Oct 2011 09:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-8204</guid>
		<description>&lt;a href="#comment-5750" rel="nofollow"&gt;@Wietse Sas&lt;/a&gt; 

Did you manage to come up with a solution for this?</description>
		<content:encoded><![CDATA[<p><a href="#comment-5750" rel="nofollow">@Wietse Sas</a> </p>
<p>Did you manage to come up with a solution for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Building OpenPOS: Part 9 – Settings and Notifications &#171; Rudi Grobler</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-7903</link>
		<dc:creator>Building OpenPOS: Part 9 – Settings and Notifications &#171; Rudi Grobler</dc:creator>
		<pubDate>Tue, 27 Sep 2011 06:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-7903</guid>
		<description>[...] &#8211; this uses wpf-notifyicon (And here is a CodeProject article on how to use [...]</description>
		<content:encoded><![CDATA[<p>[...] &ndash; this uses wpf-notifyicon (And here is a CodeProject article on how to use [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Custom Text Encoding Generator For Silverlight by Josias Fontoura</title>
		<link>http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator/comment-page-1#comment-7190</link>
		<dc:creator>Josias Fontoura</dc:creator>
		<pubDate>Wed, 31 Aug 2011 14:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator#comment-7190</guid>
		<description>Muito boa solução! Resolveu definitivamente o meu problema. Obrigado por compartilhar!</description>
		<content:encoded><![CDATA[<p>Muito boa solução! Resolveu definitivamente o meu problema. Obrigado por compartilhar!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Moving WPF DataGrid Rows using Drag and Drop by peter</title>
		<link>http://www.hardcodet.net/2009/03/moving-data-grid-rows-using-drag-and-drop/comment-page-1#comment-7184</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 31 Aug 2011 11:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=304#comment-7184</guid>
		<description>This is really good.
However I need move a record from one data grid to another. 
I should be able to leverage somewhat of what you have demod.
Thank you</description>
		<content:encoded><![CDATA[<p>This is really good.<br />
However I need move a record from one data grid to another.<br />
I should be able to leverage somewhat of what you have demod.<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sketchables 0.9 &#8211; Public Preview Release by MS SketchFlow meets Sketchables &#124; Michael Gaigg: Über UI/UX Design</title>
		<link>http://www.hardcodet.net/2010/07/public-sketchables-preview-release/comment-page-1#comment-7137</link>
		<dc:creator>MS SketchFlow meets Sketchables &#124; Michael Gaigg: Über UI/UX Design</dc:creator>
		<pubDate>Tue, 30 Aug 2011 05:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2010/07/public-sketchables-preview-release#comment-7137</guid>
		<description>[...] Sketchables (by Philipp Sumi) is a simple framework complemented by a set of controls that allow you to quickly create common controls in a matter of seconds. Sketchable extends the limited set of out-of-the-box sketch controls offered by SketchFlow.  Download Sketchables Preview [...]</description>
		<content:encoded><![CDATA[<p>[...] Sketchables (by Philipp Sumi) is a simple framework complemented by a set of controls that allow you to quickly create common controls in a matter of seconds. Sketchable extends the limited set of out-of-the-box sketch controls offered by SketchFlow.  Download Sketchables Preview [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SLF Hands-on Tutorial, Part 1 by Giulliano</title>
		<link>http://www.hardcodet.net/2009/12/slf-tutorial-1/comment-page-1#comment-6996</link>
		<dc:creator>Giulliano</dc:creator>
		<pubDate>Fri, 26 Aug 2011 04:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=664#comment-6996</guid>
		<description>Hello, Philipp!

 correction:
 I enjoyed your tutorial. I'm thinking of integrating the SLF and NHibernate. Do you have any hint or suggestion to pass me?

 Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hello, Philipp!</p>
<p> correction:<br />
 I enjoyed your tutorial. I&#8217;m thinking of integrating the SLF and NHibernate. Do you have any hint or suggestion to pass me?</p>
<p> Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SLF Hands-on Tutorial, Part 1 by Giulliano</title>
		<link>http://www.hardcodet.net/2009/12/slf-tutorial-1/comment-page-1#comment-6995</link>
		<dc:creator>Giulliano</dc:creator>
		<pubDate>Fri, 26 Aug 2011 04:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=664#comment-6995</guid>
		<description>Hello, Philipp!

 I enjoyed your tutorial. I'm thinking of integrating SQL with NHibernate. Do you have any hint or suggestion to pass me?

 Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hello, Philipp!</p>
<p> I enjoyed your tutorial. I&#8217;m thinking of integrating SQL with NHibernate. Do you have any hint or suggestion to pass me?</p>
<p> Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Oz</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-6991</link>
		<dc:creator>Oz</dc:creator>
		<pubDate>Fri, 26 Aug 2011 02:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-6991</guid>
		<description>&lt;a href="#comment-6988" rel="nofollow"&gt;@Oz&lt;/a&gt; 

I found why, this is cause by the AllowsTransparency attributes :
http://blogs.msdn.com/b/changov/archive/2009/01/19/webbrowser-control-on-transparent-wpf-window.aspx

Thanks</description>
		<content:encoded><![CDATA[<p><a href="#comment-6988" rel="nofollow">@Oz</a> </p>
<p>I found why, this is cause by the AllowsTransparency attributes :<br />
<a href="http://blogs.msdn.com/b/changov/archive/2009/01/19/webbrowser-control-on-transparent-wpf-window.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/comment/blogs.msdn.com');" rel="nofollow">http://blogs.msdn.com/b/changov/archive/2009/01/19/webbrowser-control-on-transparent-wpf-window.aspx</a></p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Oz</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-6988</link>
		<dc:creator>Oz</dc:creator>
		<pubDate>Fri, 26 Aug 2011 01:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-6988</guid>
		<description>Hi,
thank you for this awesome tuto and component !
I tried to add a webbrowser wpf component to the notification but it stays invisible (works when I click on it).
Do you have any idea to solve this ?
Regards</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thank you for this awesome tuto and component !<br />
I tried to add a webbrowser wpf component to the notification but it stays invisible (works when I click on it).<br />
Do you have any idea to solve this ?<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NetDrives - Simple Network Share Management by jun xu</title>
		<link>http://www.hardcodet.net/projects/netdrives/comment-page-1#comment-6961</link>
		<dc:creator>jun xu</dc:creator>
		<pubDate>Thu, 25 Aug 2011 05:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=322#comment-6961</guid>
		<description>Please I have a question for everyone


it says at head:
"System Requirements:Microsoft Windows xp or higher"

I run the popup app in win2003   [with code "TaskbarIcon.AddBalloonClosingHandler(this, OnBalloonClosing)"]
but sometimes, the popup doesn't show itself , win2003 is not supported?


Thanks a lot</description>
		<content:encoded><![CDATA[<p>Please I have a question for everyone</p>
<p>it says at head:<br />
&#8220;System Requirements:Microsoft Windows xp or higher&#8221;</p>
<p>I run the popup app in win2003   [with code "TaskbarIcon.AddBalloonClosingHandler(this, OnBalloonClosing)"]<br />
but sometimes, the popup doesn&#8217;t show itself , win2003 is not supported?</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Finding an ancestor of a WPF dependency object by samir</title>
		<link>http://www.hardcodet.net/2008/02/find-wpf-parent/comment-page-1#comment-6958</link>
		<dc:creator>samir</dc:creator>
		<pubDate>Thu, 25 Aug 2011 04:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2008/02/find-wpf-parent#comment-6958</guid>
		<description>Thanks a lot,
this stuff helps me much
Regards, Samir K</description>
		<content:encoded><![CDATA[<p>Thanks a lot,<br />
this stuff helps me much<br />
Regards, Samir K</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Marcos Lommez</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-6885</link>
		<dc:creator>Marcos Lommez</dc:creator>
		<pubDate>Tue, 23 Aug 2011 01:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-6885</guid>
		<description>Anyone could help me to fix that problem in my previous post?
Thanks</description>
		<content:encoded><![CDATA[<p>Anyone could help me to fix that problem in my previous post?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by rich</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-6799</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Fri, 19 Aug 2011 09:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-6799</guid>
		<description>loving this thing man!  THanks!  BUilding a timer tool that helps me track multitasking and also add notes to keep track of where i am with all.  Lemme know if you're interested i'll send it to you - Rich</description>
		<content:encoded><![CDATA[<p>loving this thing man!  THanks!  BUilding a timer tool that helps me track multitasking and also add notes to keep track of where i am with all.  Lemme know if you&#8217;re interested i&#8217;ll send it to you - Rich</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Frank</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-6774</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 18 Aug 2011 04:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-6774</guid>
		<description>Wow, I was amazed to the extend of work you put in this assembly. Thank you very much for your efforts. So far, it works fantastic. Big thanks.</description>
		<content:encoded><![CDATA[<p>Wow, I was amazed to the extend of work you put in this assembly. Thank you very much for your efforts. So far, it works fantastic. Big thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A base class for custom WPF binding markup extensions by Tobias</title>
		<link>http://www.hardcodet.net/2008/04/wpf-custom-binding-class/comment-page-1#comment-6754</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Wed, 17 Aug 2011 11:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2008/04/wpf-custom-binding-class#comment-6754</guid>
		<description>About the issue with Templates:
If your targetObject == null (or in real it is SharedDP) return the MarkupExtension itself and it will get called once the control which uses the template will get instantiated and then you will get proper values for targetObject.</description>
		<content:encoded><![CDATA[<p>About the issue with Templates:<br />
If your targetObject == null (or in real it is SharedDP) return the MarkupExtension itself and it will get called once the control which uses the template will get instantiated and then you will get proper values for targetObject.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NetDrives - Simple Network Share Management by nona</title>
		<link>http://www.hardcodet.net/projects/netdrives/comment-page-1#comment-6644</link>
		<dc:creator>nona</dc:creator>
		<pubDate>Sat, 13 Aug 2011 10:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=322#comment-6644</guid>
		<description>&lt;a href="#comment-1276" rel="nofollow"&gt;@Philipp Sumi&lt;/a&gt; 
Importing/exporting functionality would be a great feature.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1276" rel="nofollow">@Philipp Sumi</a><br />
Importing/exporting functionality would be a great feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Moving WPF DataGrid Rows using Drag and Drop by iresha</title>
		<link>http://www.hardcodet.net/2009/03/moving-data-grid-rows-using-drag-and-drop/comment-page-1#comment-6641</link>
		<dc:creator>iresha</dc:creator>
		<pubDate>Sat, 13 Aug 2011 07:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=304#comment-6641</guid>
		<description>Thanks a lot. This helped me out quite a lot in my freelance project</description>
		<content:encoded><![CDATA[<p>Thanks a lot. This helped me out quite a lot in my freelance project</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sketchables 0.9 &#8211; Public Preview Release by Steve</title>
		<link>http://www.hardcodet.net/2010/07/public-sketchables-preview-release/comment-page-1#comment-6531</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 10 Aug 2011 05:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2010/07/public-sketchables-preview-release#comment-6531</guid>
		<description>&lt;blockquote cite="#commentbody-3742"&gt;
&lt;strong&gt;&lt;a href="#comment-3742" rel="nofollow"&gt;Raj Rao&lt;/a&gt; :&lt;/strong&gt;
You need to copy the contents of “sketchables.preview.zip\Sketchables\Build\SL\Debug” to “C:\Program Files (x86)\Microsoft Expression\Blend 4\Libraries\Silverlight\v4.0” and then restart blend to begin working with it.
&lt;/blockquote&gt;

Thanks for this. Couldn't get it to work by only adding the dll's.</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-3742"><p>
<strong><a href="#comment-3742" rel="nofollow">Raj Rao</a> :</strong><br />
You need to copy the contents of “sketchables.preview.zip\Sketchables\Build\SL\Debug” to “C:\Program Files (x86)\Microsoft Expression\Blend 4\Libraries\Silverlight\v4.0” and then restart blend to begin working with it.
</p></blockquote>
<p>Thanks for this. Couldn&#8217;t get it to work by only adding the dll&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sketchables 0.9 &#8211; Public Preview Release by Steve</title>
		<link>http://www.hardcodet.net/2010/07/public-sketchables-preview-release/comment-page-1#comment-6530</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 10 Aug 2011 05:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2010/07/public-sketchables-preview-release#comment-6530</guid>
		<description>Great work. Just plain great. I love it :) Saved me a ton of work.</description>
		<content:encoded><![CDATA[<p>Great work. Just plain great. I love it <img src='http://www.hardcodet.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Saved me a ton of work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Custom Text Encoding Generator For Silverlight by Alex Burtsev</title>
		<link>http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator/comment-page-1#comment-6299</link>
		<dc:creator>Alex Burtsev</dc:creator>
		<pubDate>Tue, 02 Aug 2011 19:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator#comment-6299</guid>
		<description>Saved me 2 hours of work. Great idea to autogenerate it.</description>
		<content:encoded><![CDATA[<p>Saved me 2 hours of work. Great idea to autogenerate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Marcos Lommez</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-6285</link>
		<dc:creator>Marcos Lommez</dc:creator>
		<pubDate>Tue, 02 Aug 2011 10:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-6285</guid>
		<description>Hi Philipp,

I've downloaded your WPF NotifyIcon and is great control.
I'm a new WPF coder, learning the MVVM pattern.
In my application i'm trying to bind a context menu to a command that i've created.
In a resource file, i've created the taskBarIcon and the context menu.

Here is how, i'm creating the TaskBarIcon and the context menu:



    
        
        

    

    




Here is my base class for commands:

    public class ViewModelCommand : ICommand
    {
        public ViewModelCommand(Action executeAction,
                                Predicate canExecute)
        {
            if (executeAction == null)
                throw new ArgumentNullException("executeAction");

            _executeAction = executeAction;
            _canExecute = canExecute;
        }

        private readonly Predicate _canExecute;
        public bool CanExecute(object parameter)
        {
            if (_canExecute == null) return true;

            return _canExecute(parameter);
        }

        public event EventHandler CanExecuteChanged;
        public void OnCanExecuteChanged()
        {
            if (CanExecuteChanged != null)
                CanExecuteChanged(this, EventArgs.Empty);
        }

        private readonly Action _executeAction;
        public void Execute(object parameter)
        {
            _executeAction(parameter);
        }
    }
    
Here is the viewmodel code for my main window

    public class MainViewModel : ViewModel
    {
        public DataClient dataClient;
        public TaskbarIcon taskBarIcon;

        private ViewModelCommand fCheckSomethingOnServer = null;
        public ViewModelCommand CheckSomethingOnServer
        {
            get
            {
                if (fCheckSomethingOnServer == null)
                {
                    fCheckSomethingOnServer = new ViewModelCommand(p =&gt; CheckSomething(this, new CheckSomethingEventArgs(dataClient)), p =&gt; CanCheckSomething);
                }

                return fCheckSomethingOnServer;
            }
        }
        
        public class CheckSomethingEventArgs : EventArgs
        {
            public CheckSomethingEventArgs(DataClient dataClient)
            {
                this.dataClient = dataClient;
            }
            public DataClient dataClient { get; set; }
        }
                
        private void CheckSomething(object sender, CheckSomethingEventArgs e)
        {
          e.DataClient.CheckSomething();
        }  
        
        private bool CanCheckSomething
        {
            get { return dataClient.Logged; }
        }              
    }
    
Here is the Main Window code:
    
				public DataClient dataClient;
        private TaskbarIcon tb;
        private MainViewModel _viewModel = null;

        public MainWindow()
        {
            InitializeComponent();
            dataClient = new DataClient();
            tb = (TaskbarIcon)FindResource("MyNotifyIcon");
            if (fViewModel == null)
            {
                fViewModel = new MainViewModel();
                fViewModel.dataClient = dataClient;
                fViewModel.taskBarIcon = tb;
                DataContext = fViewModel;
            }
        }
        
 The problem is that the CheckSomethingOnServer command is never fired.
 Could you help me to fix that problem?
 Feel free to contact my by e-mail.
 
 Thanks
 
 Best regards,
 Marcos Lommez</description>
		<content:encoded><![CDATA[<p>Hi Philipp,</p>
<p>I&#8217;ve downloaded your WPF NotifyIcon and is great control.<br />
I&#8217;m a new WPF coder, learning the MVVM pattern.<br />
In my application i&#8217;m trying to bind a context menu to a command that i&#8217;ve created.<br />
In a resource file, i&#8217;ve created the taskBarIcon and the context menu.</p>
<p>Here is how, i&#8217;m creating the TaskBarIcon and the context menu:</p>
<p>Here is my base class for commands:</p>
<p>    public class ViewModelCommand : ICommand<br />
    {<br />
        public ViewModelCommand(Action executeAction,<br />
                                Predicate canExecute)<br />
        {<br />
            if (executeAction == null)<br />
                throw new ArgumentNullException(&#8221;executeAction&#8221;);</p>
<p>            _executeAction = executeAction;<br />
            _canExecute = canExecute;<br />
        }</p>
<p>        private readonly Predicate _canExecute;<br />
        public bool CanExecute(object parameter)<br />
        {<br />
            if (_canExecute == null) return true;</p>
<p>            return _canExecute(parameter);<br />
        }</p>
<p>        public event EventHandler CanExecuteChanged;<br />
        public void OnCanExecuteChanged()<br />
        {<br />
            if (CanExecuteChanged != null)<br />
                CanExecuteChanged(this, EventArgs.Empty);<br />
        }</p>
<p>        private readonly Action _executeAction;<br />
        public void Execute(object parameter)<br />
        {<br />
            _executeAction(parameter);<br />
        }<br />
    }</p>
<p>Here is the viewmodel code for my main window</p>
<p>    public class MainViewModel : ViewModel<br />
    {<br />
        public DataClient dataClient;<br />
        public TaskbarIcon taskBarIcon;</p>
<p>        private ViewModelCommand fCheckSomethingOnServer = null;<br />
        public ViewModelCommand CheckSomethingOnServer<br />
        {<br />
            get<br />
            {<br />
                if (fCheckSomethingOnServer == null)<br />
                {<br />
                    fCheckSomethingOnServer = new ViewModelCommand(p =&gt; CheckSomething(this, new CheckSomethingEventArgs(dataClient)), p =&gt; CanCheckSomething);<br />
                }</p>
<p>                return fCheckSomethingOnServer;<br />
            }<br />
        }</p>
<p>        public class CheckSomethingEventArgs : EventArgs<br />
        {<br />
            public CheckSomethingEventArgs(DataClient dataClient)<br />
            {<br />
                this.dataClient = dataClient;<br />
            }<br />
            public DataClient dataClient { get; set; }<br />
        }</p>
<p>        private void CheckSomething(object sender, CheckSomethingEventArgs e)<br />
        {<br />
          e.DataClient.CheckSomething();<br />
        }  </p>
<p>        private bool CanCheckSomething<br />
        {<br />
            get { return dataClient.Logged; }<br />
        }<br />
    }</p>
<p>Here is the Main Window code:</p>
<p>				public DataClient dataClient;<br />
        private TaskbarIcon tb;<br />
        private MainViewModel _viewModel = null;</p>
<p>        public MainWindow()<br />
        {<br />
            InitializeComponent();<br />
            dataClient = new DataClient();<br />
            tb = (TaskbarIcon)FindResource(&#8221;MyNotifyIcon&#8221;);<br />
            if (fViewModel == null)<br />
            {<br />
                fViewModel = new MainViewModel();<br />
                fViewModel.dataClient = dataClient;<br />
                fViewModel.taskBarIcon = tb;<br />
                DataContext = fViewModel;<br />
            }<br />
        }</p>
<p> The problem is that the CheckSomethingOnServer command is never fired.<br />
 Could you help me to fix that problem?<br />
 Feel free to contact my by e-mail.</p>
<p> Thanks</p>
<p> Best regards,<br />
 Marcos Lommez</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Format WPF Bindings With Resource File Lookups by Kevin</title>
		<link>http://www.hardcodet.net/2009/03/lookup-resource-value-using-markup-extension/comment-page-1#comment-6280</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 02 Aug 2011 05:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2009/03/lookup-resource-value-using-markup-extension#comment-6280</guid>
		<description>Very simple code and very easy to understand too.</description>
		<content:encoded><![CDATA[<p>Very simple code and very easy to understand too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Custom Text Encoding Generator For Silverlight by Hermit Dave</title>
		<link>http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator/comment-page-1#comment-6121</link>
		<dc:creator>Hermit Dave</dc:creator>
		<pubDate>Tue, 26 Jul 2011 11:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator#comment-6121</guid>
		<description>dont worry about it. I think i am have figured out how to use utf-8 finally :) will know for sure tomorrow</description>
		<content:encoded><![CDATA[<p>dont worry about it. I think i am have figured out how to use utf-8 finally <img src='http://www.hardcodet.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> will know for sure tomorrow</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Custom Text Encoding Generator For Silverlight by Hermit Dave</title>
		<link>http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator/comment-page-1#comment-6092</link>
		<dc:creator>Hermit Dave</dc:creator>
		<pubDate>Mon, 25 Jul 2011 06:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator#comment-6092</guid>
		<description>Hi,

Your encoding generator has been a blessing for me. I have been writing a keyboard app for WP7 and this has been vital for me.

I am looking into supporting Nordic languages but i can't get encoding generator to take the latin6 / iso-8859-10 codes.

I'll look into the code eventually. Thought i'd ask you first as i have my hands full building decent frequency word list</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Your encoding generator has been a blessing for me. I have been writing a keyboard app for WP7 and this has been vital for me.</p>
<p>I am looking into supporting Nordic languages but i can&#8217;t get encoding generator to take the latin6 / iso-8859-10 codes.</p>
<p>I&#8217;ll look into the code eventually. Thought i&#8217;d ask you first as i have my hands full building decent frequency word list</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Organizing Heterogeneous Data on a WPF TreeView by Minstrel</title>
		<link>http://www.hardcodet.net/2008/12/heterogeneous-wpf-treeview/comment-page-1#comment-5934</link>
		<dc:creator>Minstrel</dc:creator>
		<pubDate>Wed, 20 Jul 2011 14:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=138#comment-5934</guid>
		<description>Fantastic article, exactly what I needed. It even works when you have a collection of child farms. The template is recursively applied to the child farms with no extra work. Overjoyed with the simplicitly of the solution. Thankyou!</description>
		<content:encoded><![CDATA[<p>Fantastic article, exactly what I needed. It even works when you have a collection of child farms. The template is recursively applied to the child farms with no extra work. Overjoyed with the simplicitly of the solution. Thankyou!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Attached Properties to Create a WPF Image Button by Philipp Sumi</title>
		<link>http://www.hardcodet.net/2009/01/create-wpf-image-button-through-attached-properties/comment-page-1#comment-5813</link>
		<dc:creator>Philipp Sumi</dc:creator>
		<pubDate>Fri, 15 Jul 2011 23:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?p=223#comment-5813</guid>
		<description>&lt;a href="#comment-5745" rel="nofollow"&gt;@Mark&lt;/a&gt; 
With regards to 2: You can just change the Opacity is the control is disabled, which provides you with a similar effect.</description>
		<content:encoded><![CDATA[<p><a href="#comment-5745" rel="nofollow">@Mark</a><br />
With regards to 2: You can just change the Opacity is the control is disabled, which provides you with a similar effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WPF NotifyIcon by Phil Jagger</title>
		<link>http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-5756</link>
		<dc:creator>Phil Jagger</dc:creator>
		<pubDate>Wed, 13 Jul 2011 10:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hardcodet.net/?page_id=452#comment-5756</guid>
		<description>&lt;a href="#comment-2617" rel="nofollow"&gt;@Chris Baker&lt;/a&gt; 

Make sure you've set your Application's ShutdownMode to OnMainWindowClose. By default it's set to LastWindowClosed and since the notify icon creates a window, it will keep your application alive after the main window closes and you'll have to kill it from the task manager.</description>
		<content:encoded><![CDATA[<p><a href="#comment-2617" rel="nofollow">@Chris Baker</a> </p>
<p>Make sure you&#8217;ve set your Application&#8217;s ShutdownMode to OnMainWindowClose. By default it&#8217;s set to LastWindowClosed and since the notify icon creates a window, it will keep your application alive after the main window closes and you&#8217;ll have to kill it from the task manager.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

