<?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: Building a paint application in Silverlight using the &#8216;Line&#8217; element</title>
	<atom:link href="http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/</link>
	<description>Gavin Wignall Blogs about Silverlight tutorials and examples</description>
	<lastBuildDate>Thu, 08 Dec 2011 18:47:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Vijay</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-29637</link>
		<dc:creator>Vijay</dc:creator>
		<pubDate>Fri, 20 May 2011 00:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-29637</guid>
		<description>It is a great post. I am trying to use it for a paint type application on Windows Phone 7. As you say the erase is very tricky. I tried the idea given below without much success. Any ideas to fix this? Thanks.

I use a button to select erase mode. After selecting erase mode when the user touches the screen, pt.erase is the touch point .

 foreach (var item in Draw_Canvas.Children)
                {
                    Line line1 = (Line)item;
                    if (IsPointBetween(pterase.X, line1.X1, line1.X2))
                        if (IsPointBetween(pterase.Y, line1.Y1, line1.Y2))
                        {
                            _deletedLines.Add(line1);
                            numberofdeletedlines++;
                        }
                }
                foreach (var item in _deletedLines)
                {
                    Draw_Canvas.Children.Remove(item);
                    Draw_Canvas_Children_Count.Text = Draw_Canvas.Children.Count.ToString();
                }

 private static bool IsPointBetween(double point, double start, double end)
        {
            if (start = start) &amp;&amp; (point = end) &amp;&amp; (point &lt;= start);
        }</description>
		<content:encoded><![CDATA[<p>It is a great post. I am trying to use it for a paint type application on Windows Phone 7. As you say the erase is very tricky. I tried the idea given below without much success. Any ideas to fix this? Thanks.</p>
<p>I use a button to select erase mode. After selecting erase mode when the user touches the screen, pt.erase is the touch point .</p>
<p> foreach (var item in Draw_Canvas.Children)<br />
                {<br />
                    Line line1 = (Line)item;<br />
                    if (IsPointBetween(pterase.X, line1.X1, line1.X2))<br />
                        if (IsPointBetween(pterase.Y, line1.Y1, line1.Y2))<br />
                        {<br />
                            _deletedLines.Add(line1);<br />
                            numberofdeletedlines++;<br />
                        }<br />
                }<br />
                foreach (var item in _deletedLines)<br />
                {<br />
                    Draw_Canvas.Children.Remove(item);<br />
                    Draw_Canvas_Children_Count.Text = Draw_Canvas.Children.Count.ToString();<br />
                }</p>
<p> private static bool IsPointBetween(double point, double start, double end)<br />
        {<br />
            if (start = start) &amp;&amp; (point = end) &amp;&amp; (point &lt;= start);<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hansi</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-22828</link>
		<dc:creator>hansi</dc:creator>
		<pubDate>Mon, 29 Nov 2010 06:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-22828</guid>
		<description>hi,
   i am new to silverlight.your post is very good  but i want to draw circle r rectangle r any text just like paint application when u select r drag the circle it will placed on inkpresenter.So,Please help me</description>
		<content:encoded><![CDATA[<p>hi,<br />
   i am new to silverlight.your post is very good  but i want to draw circle r rectangle r any text just like paint application when u select r drag the circle it will placed on inkpresenter.So,Please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-8376</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Sun, 07 Mar 2010 17:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-8376</guid>
		<description>Cudos to you!  This is an awesome demo!</description>
		<content:encoded><![CDATA[<p>Cudos to you!  This is an awesome demo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silverlight Brush Effect &#8211; Paint Splatter &#173; Silverlight Buzz</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-6843</link>
		<dc:creator>Silverlight Brush Effect &#8211; Paint Splatter &#173; Silverlight Buzz</dc:creator>
		<pubDate>Tue, 09 Feb 2010 13:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-6843</guid>
		<description>[...] You can see another post I made on building a Paint Application here. [...]</description>
		<content:encoded><![CDATA[<p>[...] You can see another post I made on building a Paint Application here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Wignall</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-6681</link>
		<dc:creator>Gavin Wignall</dc:creator>
		<pubDate>Fri, 05 Feb 2010 09:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-6681</guid>
		<description>Have you installed all the additional Silverlight addons? check out http://www.silverlight.net/getstarted/ and let me know if that helps ;)</description>
		<content:encoded><![CDATA[<p>Have you installed all the additional Silverlight addons? check out <a href="http://www.silverlight.net/getstarted/" rel="nofollow">http://www.silverlight.net/getstarted/</a> and let me know if that helps <img src='http://www.silverlightbuzz.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: strepto1</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-6678</link>
		<dc:creator>strepto1</dc:creator>
		<pubDate>Fri, 05 Feb 2010 05:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-6678</guid>
		<description>I&#039;m sorry i just newbie..
Why cannot i open your project using Visual Studio Express Edition?</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry i just newbie..<br />
Why cannot i open your project using Visual Studio Express Edition?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suphi Uçar</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-2382</link>
		<dc:creator>Suphi Uçar</dc:creator>
		<pubDate>Tue, 27 Oct 2009 09:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-2382</guid>
		<description>Great article and very usefull. and i managed to save the stokes and show it later. But i couldnt do the erase option :( Are you still working on this article to achieve erase or text features?</description>
		<content:encoded><![CDATA[<p>Great article and very usefull. and i managed to save the stokes and show it later. But i couldnt do the erase option <img src='http://www.silverlightbuzz.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Are you still working on this article to achieve erase or text features?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-09-10 &#124; On9 Systems</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-1302</link>
		<dc:creator>links for 2009-09-10 &#124; On9 Systems</dc:creator>
		<pubDate>Fri, 11 Sep 2009 00:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-1302</guid>
		<description>[...] Building a paint application in Silverlight using the ‘Line’ element » Silverlight Buzz (tags: silverlight paint application tutorial) [...]</description>
		<content:encoded><![CDATA[<p>[...] Building a paint application in Silverlight using the ‘Line’ element » Silverlight Buzz (tags: silverlight paint application tutorial) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Live Mesh Paint &#171; Sigurd Snørteland</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-1258</link>
		<dc:creator>Live Mesh Paint &#171; Sigurd Snørteland</dc:creator>
		<pubDate>Tue, 08 Sep 2009 07:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-1258</guid>
		<description>[...] bygger på en tegneprosjekt som Silverlight Buzz har utviklet, og er endret for å støtte synkronisering og hosting i Live Mesh [...]</description>
		<content:encoded><![CDATA[<p>[...] bygger på en tegneprosjekt som Silverlight Buzz har utviklet, og er endret for å støtte synkronisering og hosting i Live Mesh [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Wignall</title>
		<link>http://www.silverlightbuzz.com/2009/03/15/building-a-paint-application-in-silverlight-using-the-line-element/comment-page-1/#comment-176</link>
		<dc:creator>Gavin Wignall</dc:creator>
		<pubDate>Tue, 16 Jun 2009 20:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=152#comment-176</guid>
		<description>My work is free for all to use, a small link back to this site is welcomed if any of my content is featured elsewhere :)</description>
		<content:encoded><![CDATA[<p>My work is free for all to use, a small link back to this site is welcomed if any of my content is featured elsewhere <img src='http://www.silverlightbuzz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

