<?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: What is the difference between&#8230; ?</title>
	<atom:link href="http://bea.stollnitz.com/blog/?feed=rss2&#038;p=38" rel="self" type="application/rss+xml" />
	<link>http://bea.stollnitz.com/blog/?p=38</link>
	<description>on Silverlight and WPF</description>
	<lastBuildDate>Thu, 22 Jul 2010 20:56:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-166491</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Mon, 12 Oct 2009 02:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-166491</guid>
		<description>Hi Saxon,

Thanks for letting me know. I&#039;ve updated the blog post to include the missing code.

Bea</description>
		<content:encoded><![CDATA[<p>Hi Saxon,</p>
<p>Thanks for letting me know. I&#8217;ve updated the blog post to include the missing code.</p>
<p>Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saxon</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-162919</link>
		<dc:creator>Saxon</dc:creator>
		<pubDate>Thu, 10 Sep 2009 03:04:35 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-162919</guid>
		<description>I found no sample code attached below &quot; try replacing the ContentPresenter in the markup above with the following:&quot;
Are there any code missing? I&#039;m using IE8</description>
		<content:encoded><![CDATA[<p>I found no sample code attached below &#8221; try replacing the ContentPresenter in the markup above with the following:&#8221;<br />
Are there any code missing? I&#8217;m using IE8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-352</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Tue, 18 Sep 2007 04:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-352</guid>
		<description>Hi Peter,

Unfortunately I am not an expert in Blend. There is a &lt;a href=&quot;http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.expression.interactivedesigner&amp;cat=&amp;lang=en&amp;CR=US&quot; rel=&quot;nofollow&quot;&gt;forum&lt;/a&gt; where you can ask Blend questions - there are typically people from the Blend team watching the questions and replying.

I hope you can find answers to your questions there.

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Unfortunately I am not an expert in Blend. There is a <a href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.expression.interactivedesigner&amp;cat=&amp;lang=en&amp;CR=US" rel="nofollow">forum</a> where you can ask Blend questions &#8211; there are typically people from the Blend team watching the questions and replying.</p>
<p>I hope you can find answers to your questions there.</p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kellner</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-63</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Thu, 30 Aug 2007 11:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-63</guid>
		<description>Is there someway with blend to work with templates? I end up cutting and pasting a lot and it gets kind of confusing.</description>
		<content:encoded><![CDATA[<p>Is there someway with blend to work with templates? I end up cutting and pasting a lot and it gets kind of confusing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-62</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Wed, 13 Dec 2006 20:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-62</guid>
		<description>Bea,

It is the latter. The checkboxes are bound to a property on the items added to the ObservableCollection, so some checkboxes are unchecked and some are checked.

Al</description>
		<content:encoded><![CDATA[<p>Bea,</p>
<p>It is the latter. The checkboxes are bound to a property on the items added to the ObservableCollection, so some checkboxes are unchecked and some are checked.</p>
<p>Al</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-61</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Tue, 12 Dec 2006 15:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-61</guid>
		<description>Hi Al,

Ah, yes, I understand your scenario with the dynamic properties and yes, CustomTypeDescriptor is the best solution. I added this topic to my list, so I will talk about it in a future post (not in the next one, since I have other topic requests before this one.) 

I have one question about your ListView scenario. Are the CheckBoxes in the ListViewItems bound to one single property in the ObservableCollection, meaning they&#039;re all checked or all unchecked? Or are they bound to a property on the items added to the ObservableCollection, which means some of them could be checked and others unchecked? From your description, it seems like you&#039;re asking for the first, but I would expect the second one to be a more useful scenario. 

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Hi Al,</p>
<p>Ah, yes, I understand your scenario with the dynamic properties and yes, CustomTypeDescriptor is the best solution. I added this topic to my list, so I will talk about it in a future post (not in the next one, since I have other topic requests before this one.) </p>
<p>I have one question about your ListView scenario. Are the CheckBoxes in the ListViewItems bound to one single property in the ObservableCollection, meaning they&#8217;re all checked or all unchecked? Or are they bound to a property on the items added to the ObservableCollection, which means some of them could be checked and others unchecked? From your description, it seems like you&#8217;re asking for the first, but I would expect the second one to be a more useful scenario. </p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-60</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Mon, 11 Dec 2006 04:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-60</guid>
		<description>Hi Bea,

I&#039;m sorry it&#039;s taken so long to get back to you. In a static situation, the observable collection would have a set of properties that you would then map to each column in a list view, something like Name, Age, and Height for example. And that&#039;s great for a static view. The data I work with isn&#039;t static. I have one list view and when the data is returned it may have one column of data or ten, depending on the call being made. My list view needs to be able to handle the additional (or lack) of columns without resorting to hard-code properties (i.e., Name, Age, etc). I mean, I could have set of properties named Column1, Column2, etc, but that&#039;s pretty kludgy. The solution to this problem was (and I&#039;m not sure I completely understand everything) to create some classes to generate some custom properties for a collection utilizing the TypeDescriptionProvider, CustomTypeDescriptor and PropertyDescriptor classes. This creates a dynamic, custom set of properties for the collection so I can map my collection to the each column in the list view. As far as the MultiBinding example goes, try this. Use the example in the SDK for having a checkbox on a ListViewItem (How to: Create ListViewItems with a CheckBox). Bind the list view to an observable collection and additionally bind the checkbox checked state to a boolean in the observable collection. Show us the example with xaml and code. There is a definite lack of coding examples for Binding/MultiBinding in code and a few good examples would go a long way to help and for understanding.

Thanks,
Al</description>
		<content:encoded><![CDATA[<p>Hi Bea,</p>
<p>I&#8217;m sorry it&#8217;s taken so long to get back to you. In a static situation, the observable collection would have a set of properties that you would then map to each column in a list view, something like Name, Age, and Height for example. And that&#8217;s great for a static view. The data I work with isn&#8217;t static. I have one list view and when the data is returned it may have one column of data or ten, depending on the call being made. My list view needs to be able to handle the additional (or lack) of columns without resorting to hard-code properties (i.e., Name, Age, etc). I mean, I could have set of properties named Column1, Column2, etc, but that&#8217;s pretty kludgy. The solution to this problem was (and I&#8217;m not sure I completely understand everything) to create some classes to generate some custom properties for a collection utilizing the TypeDescriptionProvider, CustomTypeDescriptor and PropertyDescriptor classes. This creates a dynamic, custom set of properties for the collection so I can map my collection to the each column in the list view. As far as the MultiBinding example goes, try this. Use the example in the SDK for having a checkbox on a ListViewItem (How to: Create ListViewItems with a CheckBox). Bind the list view to an observable collection and additionally bind the checkbox checked state to a boolean in the observable collection. Show us the example with xaml and code. There is a definite lack of coding examples for Binding/MultiBinding in code and a few good examples would go a long way to help and for understanding.</p>
<p>Thanks,<br />
Al</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-59</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Sun, 26 Nov 2006 13:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-59</guid>
		<description>Al,

Thanks for your feedback. I agree that real world apps are much more complex than the simple samples you find in my blog. But at the same time, all these samples are based on questions I received from customers that, like you, are writing big real world apps. I will be happy to write a sample that addresses the particular difficulties you are encountering while writing your app.

Replying to the scenarios you mentioned:

- I can certainly write my bindings in code in my next sample. 
- Can you explain what you mean by dynamic properties in ObservableCollections? Are you using WPF&#039;s property system?
- Anytime you want to bind to more than one source at a time, you should use MultiBinding. You can find a MultiBinding sample &lt;a href=&quot;http://www.beacosta.com/2006/09/how-can-i-control-color-using-sliders.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Let me know if this solves your problem.

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Al,</p>
<p>Thanks for your feedback. I agree that real world apps are much more complex than the simple samples you find in my blog. But at the same time, all these samples are based on questions I received from customers that, like you, are writing big real world apps. I will be happy to write a sample that addresses the particular difficulties you are encountering while writing your app.</p>
<p>Replying to the scenarios you mentioned:</p>
<p>- I can certainly write my bindings in code in my next sample.<br />
- Can you explain what you mean by dynamic properties in ObservableCollections? Are you using WPF&#8217;s property system?<br />
- Anytime you want to bind to more than one source at a time, you should use MultiBinding. You can find a MultiBinding sample <a href="http://www.beacosta.com/2006/09/how-can-i-control-color-using-sliders.html" rel="nofollow">here</a>. Let me know if this solves your problem.</p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-58</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Sat, 25 Nov 2006 20:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-58</guid>
		<description>Bea,

I think a lot of your examples are ok, but they really aren&#039;t how the real world works, at least for me anyway.

For example, although my data comes to me in an xml format, it gets parsed and placed into an object. My binding needs to take place in code because each call for data can have a different number of columns, which will be unknown until I receive the data. I have a requirement for textboxes in each column header to act as input for a filter. Each row needs a checkbox that not only is bound to the ListViewItem&#039;s IsSelected property but also bound to the data source. And on top of all of this is a very complex architecture that leaves everything loosely coupled.

So I guess what I am asking for is better examples. Show us not only how to bind with xaml, but in code as well. Show us observable collections with dynamic properties. Show us how to bind a checkbox to a ListViewItem&#039;s IsSelected property _and_ to a property in the data source (my current problem that needs resolution).

Thanks,
Al</description>
		<content:encoded><![CDATA[<p>Bea,</p>
<p>I think a lot of your examples are ok, but they really aren&#8217;t how the real world works, at least for me anyway.</p>
<p>For example, although my data comes to me in an xml format, it gets parsed and placed into an object. My binding needs to take place in code because each call for data can have a different number of columns, which will be unknown until I receive the data. I have a requirement for textboxes in each column header to act as input for a filter. Each row needs a checkbox that not only is bound to the ListViewItem&#8217;s IsSelected property but also bound to the data source. And on top of all of this is a very complex architecture that leaves everything loosely coupled.</p>
<p>So I guess what I am asking for is better examples. Show us not only how to bind with xaml, but in code as well. Show us observable collections with dynamic properties. Show us how to bind a checkbox to a ListViewItem&#8217;s IsSelected property _and_ to a property in the data source (my current problem that needs resolution).</p>
<p>Thanks,<br />
Al</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=38&#038;cpage=1#comment-57</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Sat, 25 Nov 2006 17:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=38#comment-57</guid>
		<description>Hi Kent,
Thanks for the feedback. I will write about that then.
Bea</description>
		<content:encoded><![CDATA[<p>Hi Kent,<br />
Thanks for the feedback. I will write about that then.<br />
Bea</p>
]]></content:encoded>
	</item>
</channel>
</rss>
