<?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: Adventures in MVVM &#8211; Generalized Command Behavior Attachments</title>
	<atom:link href="http://houseofbilz.com/archives/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/feed/" rel="self" type="application/rss+xml" />
	<link>http://houseofbilz.com/archives/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/</link>
	<description>Func&#60;E&#62; Thoughts on Software</description>
	<lastBuildDate>Tue, 27 Dec 2011 21:30:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Farzad Jalali</title>
		<link>http://houseofbilz.com/archives/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/comment-page-1/#comment-7758</link>
		<dc:creator>Farzad Jalali</dc:creator>
		<pubDate>Mon, 16 May 2011 08:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://houseofbilz.net/archive/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/#comment-7758</guid>
		<description>Brian,

Thanks, that&#039;s really great article.
I&#039;m interested about behaviors and I don&#039;t know how to start. 
Any idea about a great website or a specific article with some hands-on please !

Thanks,
Farzad</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>Thanks, that&#8217;s really great article.<br />
I&#8217;m interested about behaviors and I don&#8217;t know how to start.<br />
Any idea about a great website or a specific article with some hands-on please !</p>
<p>Thanks,<br />
Farzad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Reich</title>
		<link>http://houseofbilz.com/archives/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/comment-page-1/#comment-1186</link>
		<dc:creator>Martin Reich</dc:creator>
		<pubDate>Wed, 29 Sep 2010 03:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://houseofbilz.net/archive/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/#comment-1186</guid>
		<description>Brian:

Thanks for the great post.  Here is a snippet that automates the boilerplate code for the class that derives from &#039;Attachment&#039;.  I have tested it out and it works just fine.

Martin Reich



  
    
      
        Expansion
      
      slabehavior
      mreich
      Creates an SL attached behvior derived from &#039;Attachment&lt;&gt;&#039;
      
      
      slabehavior
    
    
      
        
          AttachedBehaviorName
          The behavior to attach to the object
          AttachedBehaviorName
          
          
        
        
          TargetObject
          The type of control that will use this attached behavior
          TargetObject
          
          
        
        
          AttachmentClassName
          AttachmentClass	The name of the class that derives from Attachment&lt;TargetObject&gt;	AttachmentClass	Literal	N/A		True
          AttachmentClassName
          
          
        
      
      &lt;Code&gt;&lt;![CDATA[    #region $AttachmentClassName$
	
	public class $AttachmentClassName$ : Attachment
    {
        private static readonly DependencyProperty BehaviorProperty = Behavior();
        public static readonly DependencyProperty CommandProperty = Command(BehaviorProperty);
        public static readonly DependencyProperty CommandParameterProperty = Parameter(BehaviorProperty);

        public static void SetCommand($TargetObject$ control, ICommand command) { control.SetValue(CommandProperty, command); }
        public static ICommand GetCommand($TargetObject$ control) { return control.GetValue(CommandProperty) as ICommand; }
        public static void SetCommandParameter($TargetObject$ control, object parameter) { control.SetValue(CommandParameterProperty, parameter); }
        public static object GetCommandParameter($TargetObject$ buttonBase) { return buttonBase.GetValue(CommandParameterProperty); }
    }

	#endregion]]&gt;&lt;/Code&gt;
    
  
</description>
		<content:encoded><![CDATA[<p>Brian:</p>
<p>Thanks for the great post.  Here is a snippet that automates the boilerplate code for the class that derives from &#8216;Attachment&#8217;.  I have tested it out and it works just fine.</p>
<p>Martin Reich</p>
<p>        Expansion</p>
<p>      slabehavior<br />
      mreich<br />
      Creates an SL attached behvior derived from &#8216;Attachment&lt;&gt;&#8217;</p>
<p>      slabehavior</p>
<p>          AttachedBehaviorName<br />
          The behavior to attach to the object<br />
          AttachedBehaviorName</p>
<p>          TargetObject<br />
          The type of control that will use this attached behavior<br />
          TargetObject</p>
<p>          AttachmentClassName<br />
          AttachmentClass	The name of the class that derives from Attachment&lt;TargetObject&gt;	AttachmentClass	Literal	N/A		True<br />
          AttachmentClassName</p>
<p>      <code>&lt;![CDATA[    #region $AttachmentClassName$</p>
<p>	public class $AttachmentClassName$ : Attachment<br />
    {<br />
        private static readonly DependencyProperty BehaviorProperty = Behavior();<br />
        public static readonly DependencyProperty CommandProperty = Command(BehaviorProperty);<br />
        public static readonly DependencyProperty CommandParameterProperty = Parameter(BehaviorProperty);</p>
<p>        public static void SetCommand($TargetObject$ control, ICommand command) { control.SetValue(CommandProperty, command); }<br />
        public static ICommand GetCommand($TargetObject$ control) { return control.GetValue(CommandProperty) as ICommand; }<br />
        public static void SetCommandParameter($TargetObject$ control, object parameter) { control.SetValue(CommandParameterProperty, parameter); }<br />
        public static object GetCommandParameter($TargetObject$ buttonBase) { return buttonBase.GetValue(CommandParameterProperty); }<br />
    }</p>
<p>	#endregion]]&gt;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eliyahu Weg</title>
		<link>http://houseofbilz.com/archives/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/comment-page-1/#comment-983</link>
		<dc:creator>Eliyahu Weg</dc:creator>
		<pubDate>Wed, 01 Sep 2010 14:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://houseofbilz.net/archive/2009/08/22/adventures-in-mvvm-generalized-command-behavior-attachments/#comment-983</guid>
		<description>Very good read useful information. 

Thank you very much,


Quick question how would I control what properties/styles CanExecute of the command will change</description>
		<content:encoded><![CDATA[<p>Very good read useful information. </p>
<p>Thank you very much,</p>
<p>Quick question how would I control what properties/styles CanExecute of the command will change</p>
]]></content:encoded>
	</item>
</channel>
</rss>

