<?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: How can I control a color using Sliders?</title>
	<atom:link href="http://bea.stollnitz.com/blog/?feed=rss2&#038;p=33" rel="self" type="application/rss+xml" />
	<link>http://bea.stollnitz.com/blog/?p=33</link>
	<description>on Silverlight and WPF</description>
	<lastBuildDate>Mon, 02 Aug 2010 17:57:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Angelo Rohit</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-164621</link>
		<dc:creator>Angelo Rohit</dc:creator>
		<pubDate>Wed, 23 Sep 2009 05:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-164621</guid>
		<description>Many thanks, this helped me a lot. :)</description>
		<content:encoded><![CDATA[<p>Many thanks, this helped me a lot. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-369</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Wed, 19 Sep 2007 00:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-369</guid>
		<description>Hi Perter,

Do you know ahead of time that you only have 4 sliders, and do you know the mapping between the sliders and the indices in the array? If so, you can bind the Value properties of each slider to the object that holds the array, and specify Path=MyArray[0] for the first slider, and similarly for the others.

If you don&#039;t know the number of sliders in advance, and would like to generate as many sliders as ints in the array, then I would use an ItemsControl. I would bind the ItemsControl&#039;s ItemsSource property to the array, and I would add a Slider in the DataTemplate for each item.

I did notice that you said you had a &quot;field&quot; of int[], and not a &quot;property&quot;. Please note that we don&#039;t support binding to public fields, only properties. There is a workaround you can do if you really need to bind to a field, but it&#039;s a little complex. I can blog about this if there is interest.

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Hi Perter,</p>
<p>Do you know ahead of time that you only have 4 sliders, and do you know the mapping between the sliders and the indices in the array? If so, you can bind the Value properties of each slider to the object that holds the array, and specify Path=MyArray[0] for the first slider, and similarly for the others.</p>
<p>If you don&#8217;t know the number of sliders in advance, and would like to generate as many sliders as ints in the array, then I would use an ItemsControl. I would bind the ItemsControl&#8217;s ItemsSource property to the array, and I would add a Slider in the DataTemplate for each item.</p>
<p>I did notice that you said you had a &#8220;field&#8221; of int[], and not a &#8220;property&#8221;. Please note that we don&#8217;t support binding to public fields, only properties. There is a workaround you can do if you really need to bind to a field, but it&#8217;s a little complex. I can blog about this if there is interest.</p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perter</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-110</link>
		<dc:creator>Perter</dc:creator>
		<pubDate>Wed, 08 Aug 2007 04:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-110</guid>
		<description>Trying to determine a way to bind a field from a class I have made of int[] to sliders. E.g. 10,20,30,40 should each map to the &#039;Value&#039; property of 4 sliders. This example is close but I can not get it as of yet. Any suggestions would help.</description>
		<content:encoded><![CDATA[<p>Trying to determine a way to bind a field from a class I have made of int[] to sliders. E.g. 10,20,30,40 should each map to the &#8216;Value&#8217; property of 4 sliders. This example is close but I can not get it as of yet. Any suggestions would help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-109</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Tue, 12 Sep 2006 22:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-109</guid>
		<description>Hi Matthieu,

I&#039;ve replied in the forums. Since your new issues are related to Sparkle and Cider, they are outside of my expertise. I am trying to find people to help you.

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Hi Matthieu,</p>
<p>I&#8217;ve replied in the forums. Since your new issues are related to Sparkle and Cider, they are outside of my expertise. I am trying to find people to help you.</p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthieu</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-108</link>
		<dc:creator>Matthieu</dc:creator>
		<pubDate>Tue, 12 Sep 2006 03:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-108</guid>
		<description>Thx for you help but I&#039;ve 2 problems with this code that I explain on the forum.</description>
		<content:encoded><![CDATA[<p>Thx for you help but I&#8217;ve 2 problems with this code that I explain on the forum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-107</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Mon, 11 Sep 2006 13:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-107</guid>
		<description>Hi Matthieu,
I replied to you in the forums. I actually tried your code in July CTP and RC1 and it worked well. But you already figured it out :) It took me a little while to reply because I had to finish setting up my Vista RC1 machine so I could try it.

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Hi Matthieu,<br />
I replied to you in the forums. I actually tried your code in July CTP and RC1 and it worked well. But you already figured it out :) It took me a little while to reply because I had to finish setting up my Vista RC1 machine so I could try it.</p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthieu</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-106</link>
		<dc:creator>Matthieu</dc:creator>
		<pubDate>Mon, 11 Sep 2006 03:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-106</guid>
		<description>oups ! it&#039;s ObjectDataProvider not DataSource (from asp.net). BTW I solve my problem by creating a blanck project and move one by one the controls. No error found.</description>
		<content:encoded><![CDATA[<p>oups ! it&#8217;s ObjectDataProvider not DataSource (from asp.net). BTW I solve my problem by creating a blanck project and move one by one the controls. No error found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthieu</title>
		<link>http://bea.stollnitz.com/blog/?p=33&#038;cpage=1#comment-105</link>
		<dc:creator>Matthieu</dc:creator>
		<pubDate>Sun, 10 Sep 2006 03:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=33#comment-105</guid>
		<description>Hello,

I&#039;m using a Slider control with an ObjectDatasource to bind (two-way mode) the Value property. I use your useful posts to build my little project. Since the upgrade to the RC1 I&#039;ve an &quot;type not supported&quot; error. I put the code here : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=711495&amp;SiteID=1

Since the objectdatsource is not very &quot;popular&quot; in samples that I found on the web, maybe do you encounter the same problem ?

Matthieu</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m using a Slider control with an ObjectDatasource to bind (two-way mode) the Value property. I use your useful posts to build my little project. Since the upgrade to the RC1 I&#8217;ve an &#8220;type not supported&#8221; error. I put the code here : <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=711495&#038;SiteID=1" rel="nofollow">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=711495&#038;SiteID=1</a></p>
<p>Since the objectdatsource is not very &#8220;popular&#8221; in samples that I found on the web, maybe do you encounter the same problem ?</p>
<p>Matthieu</p>
]]></content:encoded>
	</item>
</channel>
</rss>
