<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Silverlight Slider that snaps to rounded value when dragged</title>
	<atom:link href="http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/</link>
	<description>Developer Flotsam - random stuff floating around?</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:50:31 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jordan</title>
		<link>http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/#comment-572</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Thu, 18 Jun 2009 11:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webjak.net/?p=295#comment-572</guid>
		<description>I know!!! too busy!</description>
		<content:encoded><![CDATA[<p>I know!!! too busy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asheesh Soni</title>
		<link>http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/#comment-571</link>
		<dc:creator>Asheesh Soni</dc:creator>
		<pubDate>Thu, 18 Jun 2009 10:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webjak.net/?p=295#comment-571</guid>
		<description>Thanks.

Now where is the post on SL-&gt;JS-&gt;HTML graceful degradation? :-?</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>Now where is the post on SL-&gt;JS-&gt;HTML graceful degradation? <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_confused.gif' alt=':-?' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan</title>
		<link>http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/#comment-570</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Thu, 18 Jun 2009 07:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webjak.net/?p=295#comment-570</guid>
		<description>Very nice :)</description>
		<content:encoded><![CDATA[<p>Very nice <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asheesh Soni</title>
		<link>http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/#comment-569</link>
		<dc:creator>Asheesh Soni</dc:creator>
		<pubDate>Thu, 18 Jun 2009 07:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webjak.net/?p=295#comment-569</guid>
		<description>http://asheeshsoni.blogspot.com/2009/06/silverlight-slider-jump-value-by.html</description>
		<content:encoded><![CDATA[<p><a href="http://asheeshsoni.blogspot.com/2009/06/silverlight-slider-jump-value-by.html" rel="nofollow">http://asheeshsoni.blogspot.com/2009/06/silverlight-slider-jump-value-by.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan</title>
		<link>http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/#comment-561</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Sat, 06 Jun 2009 01:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webjak.net/?p=295#comment-561</guid>
		<description>Hey Martin,

Thanks for your input :)

Yes your method works, but doesn&#039;t take a couple if things in to account:

Firstly by setting Slide.Value manually you&#039;ll break any data binding on the Value property -&gt; my designs are usually MVVM, so this isnt a great idea.

Second - if you put a Debug.WriteLine in your value changed handler, you&#039;ll see a non rounded change, then a rounded change - i.e. this method is calling Value twice. (0.951156812339332 then 1)

Third - your method assumes you have access to code behind, which is usually only the case in UserControls, not so much in data templates or CustomControls :)

I normally really hate inhertiting off controls to do something so simple, but unfortunately I was stuck with the restrictions I listed here.

Once again thanks for sharing your thoughts!</description>
		<content:encoded><![CDATA[<p>Hey Martin,</p>
<p>Thanks for your input <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Yes your method works, but doesn&#8217;t take a couple if things in to account:</p>
<p>Firstly by setting Slide.Value manually you&#8217;ll break any data binding on the Value property -&gt; my designs are usually MVVM, so this isnt a great idea.</p>
<p>Second &#8211; if you put a Debug.WriteLine in your value changed handler, you&#8217;ll see a non rounded change, then a rounded change &#8211; i.e. this method is calling Value twice. (0.951156812339332 then 1)</p>
<p>Third &#8211; your method assumes you have access to code behind, which is usually only the case in UserControls, not so much in data templates or CustomControls <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I normally really hate inhertiting off controls to do something so simple, but unfortunately I was stuck with the restrictions I listed here.</p>
<p>Once again thanks for sharing your thoughts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Hägerås</title>
		<link>http://blog.webjak.net/2009/05/10/silverlight-slider-that-snaps-to-rounded-value-when-dragged/#comment-560</link>
		<dc:creator>Martin Hägerås</dc:creator>
		<pubDate>Fri, 05 Jun 2009 09:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webjak.net/?p=295#comment-560</guid>
		<description>I just did this in the ValueChanged handler:
////
void Slider3_ValueChanged(object sender, RoutedPropertyChangedEventArgs e)
{
    Slider3.Value = Math.Round(e.NewValue);
}
////

Seems to work fine :)</description>
		<content:encoded><![CDATA[<p>I just did this in the ValueChanged handler:<br />
////<br />
void Slider3_ValueChanged(object sender, RoutedPropertyChangedEventArgs e)<br />
{<br />
    Slider3.Value = Math.Round(e.NewValue);<br />
}<br />
////</p>
<p>Seems to work fine <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
