<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DoNotYet.com &#187; MouseLeftButtonDown</title>
	<atom:link href="http://www.donotyet.com/tag/mouseleftbuttondown/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.donotyet.com</link>
	<description>Freebie Resources for Tech Users, AIR, Flex, Flash Developers and Photoshop, web Designers</description>
	<lastBuildDate>Wed, 07 Dec 2011 06:35:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mouse Event of Silverlight 3(with Full Source Code)</title>
		<link>http://www.donotyet.com/2009/10/31/mouse-event-of-silverlight-3-with-full-source-code/</link>
		<comments>http://www.donotyet.com/2009/10/31/mouse-event-of-silverlight-3-with-full-source-code/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 13:48:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RIA]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[MouseLeftButtonDown]]></category>
		<category><![CDATA[MouseLeftButtonUp]]></category>
		<category><![CDATA[MouseMove]]></category>
		<category><![CDATA[MouseWheel]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.donotyet.com/2009/10/28/mouse-event-of-silverlight-3-with-full-source-code/</guid>
		<description><![CDATA[Silverlight 3 provides us some mouse events, containing MouseEnter, MouseLeave, 
MouseLeftButtonDown, MouseLeftButtonUp, MouseMove, and MouseWheel. These mouse events use MouseButtonEventArgs and MouseEventArgs as parameters to catch events then active related behaviour. Through the passage we&#8217;ll learn to manage five of these events above. Please prepare some nice pictures and then let&#8217;s start to practise three [...]]]></description>
			<content:encoded><![CDATA[<p>Silverlight 3 provides us some mouse events, containing <b>MouseEnter, MouseLeave, </b></p>
<p><b>MouseLeftButtonDown, MouseLeftButtonUp, MouseMove, </b>and<b> MouseWheel</b>. These mouse events use <i>MouseButtonEventArgs</i> and <i>MouseEventArgs</i> as parameters to catch events then active related behaviour. Through the passage we&#8217;ll learn to manage five of these events above. Please prepare some nice pictures and then let&#8217;s start to practise three samples with VWD or Visual Studio 2008. </p>
<div style="margin: 0px 0px 0px 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-7859640280892154";
/* DoNotYet-Article-336-280-01 */
google_ad_slot = "0432827541";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><span id="more-1100"></span>  </p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image002_2.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="clip_image002" src="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image002_thumb.jpg" width="500" height="419" /></a></p>
<p><b>MouseEnter &amp; MouseLeave</b></p>
<p>Here we&#8217;ll realize such an effect: when the cursor move onto the original image, it turns into another image; when the cursor leave the image field, the second image changes into a third pic. Therefore the <i>MouseEnter </i>&amp; <i>MouseLeave</i> events are needed. </p>
<p>Let&#8217;s first put an image into the page, with two mouse events &quot;<i>Image_MouseEnter</i>&quot; and &quot;<i>Image_MouseLeave</i>&quot;.</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">&lt;</span><span style="color: Blue;">canvas</span><span style="color: Gray;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&lt;</span><span style="color: Blue;">image</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">Source</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">roseheart.jpg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Blue;">Canvas</span><span style="color: Gray;">.</span><span style="color: Blue;">Left</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">60</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Blue;">Canvas</span><span style="color: Gray;">.</span><span style="color: Blue;">Top</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">70</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Blue;">MouseEnter</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Image_MouseEnter</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Blue;">MouseLeave</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Image_MouseLeave</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&lt;</span><span style="color: #8b0000;">/</span><span style="color: Red;">image&gt;</span></li>
<li><span style="color: Red;">&lt;</span><span style="color: #8b0000;">/</span><span style="color: Blue;">canvas</span><span style="color: Gray;">&gt;</span></li></ol></div>
<p>Then complete the two functions in MainPage.xaml.cs.</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">private</span><span style="color: Gray;"> </span><span style="color: Green;">void</span><span style="color: Gray;"> </span><span style="color: Blue;">Image_MouseEnter</span><span style="color: Olive;">(</span><span style="color: Blue;">object</span><span style="color: Gray;"> </span><span style="color: Blue;">sender</span><span style="color: Gray;">, </span><span style="color: Blue;">MouseEventArgs</span><span style="color: Gray;"> </span><span style="color: Blue;">e</span><span style="color: Olive;">)</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Teal;">Image</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">img</span><span style="color: Gray;"> = </span><span style="color: Blue;">sender</span><span style="color: Gray;"> </span><span style="color: Blue;">as</span><span style="color: Gray;"> </span><span style="color: Teal;">Image</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">img</span><span style="color: Gray;">.</span><span style="color: Blue;">Source</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">BitmapImage</span><span style="color: Olive;">(</span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">Uri</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">fourleaf.jpg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">,</span><span style="color: Blue;">UriKind</span><span style="color: Gray;">.</span><span style="color: Blue;">RelativeOrAbsolute</span><span style="color: Olive;">))</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Green;">private</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">void</span><span style="color: Gray;"> </span><span style="color: Blue;">Image_MouseLeave</span><span style="color: Olive;">(</span><span style="color: Blue;">object</span><span style="color: Gray;"> </span><span style="color: Blue;">sender</span><span style="color: Gray;">, </span><span style="color: Blue;">MouseEventArgs</span><span style="color: Gray;"> </span><span style="color: Blue;">e</span><span style="color: Olive;">)</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Teal;">Image</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">img</span><span style="color: Gray;"> = </span><span style="color: Blue;">sender</span><span style="color: Gray;"> </span><span style="color: Blue;">as</span><span style="color: Gray;"> </span><span style="color: Teal;">Image</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">img</span><span style="color: Gray;">.</span><span style="color: Blue;">Source</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">BitmapImage</span><span style="color: Olive;">(</span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">Uri</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">rose.jpg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: Blue;">UriKind</span><span style="color: Gray;">.</span><span style="color: Blue;">RelativeOrAbsolute</span><span style="color: Olive;">))</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span></li></ol></div>
<p>Read the code above, the function <i>Image_MouseEnter </i>defines that when the mouse move onto <i>roseheart.jpg</i>, the pic will change into <i>fourleaf.jpg</i>. For that the picture format supported by Silverlight 3 is limited, we use <i>BitmapImage</i> to load a new pic of JPEG format, that&#8217;s alright too. To load files, like images, we use <i>Uri</i> Class, its constructor is (String, UriKind). For more information you can refer to MSDN. Remember to add a line &quot;using System.Windows.Media.Imaging;&quot; to the head of MainPage.xaml.cs.</p>
<p>So does the function <i>Image_MouseLeave</i> mean and you can get it.</p>
<p><b>MouseLeftButtonUp &amp; MouseLeftButtonDown</b></p>
<p>In this sample, we create an image field and a text block. When mouse is left-clicked onto the image, the text change. When the left mouse button is released, the text changes again.</p>
<p>Insert the code below to MainPage.xaml:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">&lt;</span><span style="color: Blue;">image</span><span style="color: Gray;"> </span><span style="color: Blue;">Source</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">leaf.jpg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Blue;">Canvas</span><span style="color: Gray;">.</span><span style="color: Blue;">Left</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">450</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Blue;">Canvas</span><span style="color: Gray;">.</span><span style="color: Blue;">Top</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">150</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Blue;">MouseLeftButtonDown</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Image_MouseLeftButtonDown</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Blue;">MouseLeftButtonUp</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Image_MouseLeftButtonUp</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;</span></li>
<li><span style="color: Gray;">&lt;</span><span style="color: #8b0000;">/</span><span style="color: Red;">image&gt;</span></li>
<li><span style="color: Red;">&nbsp;</span></li>
<li><span style="color: Red;">&lt;border BorderBrush=&quot;Gold&quot; BorderThickness=&quot;4&quot; Canvas.Left=&quot;120&quot; Canvas.Top=&quot;20&quot;&gt;</span></li>
<li><span style="color: Red;">&lt;textblock x:Name=&quot;textBlock&quot; Text=&quot;Please click the green leaf!&quot;</span></li>
<li><span style="color: Red;">Width=&quot;500&quot; Height=&quot;40&quot;</span></li>
<li><span style="color: Red;">FontSize=&quot;25&quot; Foreground=&quot;Blue&quot;</span><span style="color: #8b0000;">/</span><span style="color: Gray;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&lt;</span><span style="color: #8b0000;">/</span><span style="color: Red;">border&gt;</span></li></ol></div>
<p>Next add code to MainPage.xaml.cs:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">private</span><span style="color: Gray;"> </span><span style="color: Green;">void</span><span style="color: Gray;"> </span><span style="color: Blue;">Image_MouseLeftButtonDown</span><span style="color: Olive;">(</span><span style="color: Blue;">object</span><span style="color: Gray;"> </span><span style="color: Blue;">sender</span><span style="color: Gray;">, </span><span style="color: Blue;">MouseButtonEventArgs</span><span style="color: Gray;"> </span><span style="color: Blue;">e</span><span style="color: Olive;">)</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Blue;">textBlock</span><span style="color: Gray;">.</span><span style="color: Blue;">Foreground</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">SolidColorBrush</span><span style="color: Olive;">(</span><span style="color: Blue;">Colors</span><span style="color: Gray;">.</span><span style="color: Blue;">Orange</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">textBlock</span><span style="color: Gray;">.</span><span style="color: Blue;">Text</span><span style="color: Gray;"> = </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Welcome to Silverlight 3 World!</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Green;">private</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">void</span><span style="color: Gray;"> </span><span style="color: Blue;">Image_MouseLeftButtonUp</span><span style="color: Olive;">(</span><span style="color: Blue;">object</span><span style="color: Gray;"> </span><span style="color: Blue;">sender</span><span style="color: Gray;">, </span><span style="color: Blue;">MouseButtonEventArgs</span><span style="color: Gray;"> </span><span style="color: Blue;">e</span><span style="color: Olive;">)</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Blue;">textBlock</span><span style="color: Gray;">.</span><span style="color: Blue;">Foreground</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">SolidColorBrush</span><span style="color: Olive;">(</span><span style="color: Blue;">Colors</span><span style="color: Gray;">.</span><span style="color: Blue;">Purple</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">textBlock</span><span style="color: Gray;">.</span><span style="color: Blue;">FontSize</span><span style="color: Gray;"> = </span><span style="color: Maroon;">25</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">textBlock</span><span style="color: Gray;">.</span><span style="color: Blue;">Text</span><span style="color: Gray;"> = </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Wish you a wonderful Silverlight trip!</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span></li></ol></div>
<p><b>MouseMove</b></p>
<p>We use MouseMove event to show the cursor&#8217;s current position. To do this, just add one row into Canvas Control markup:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">&lt;</span><span style="color: Blue;">canvas</span><span style="color: Gray;"> </span><span style="color: Blue;">MouseMove</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Canvas_MouseMove</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;</span></li>
<li><span style="color: Gray;">&lt;</span><span style="color: #8b0000;">/</span><span style="color: Red;">canvas&gt;</span></li></ol></div>
<p>To show the position in text, add the code:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">&lt;</span><span style="color: Blue;">textblock</span><span style="color: Gray;"> </span><span style="color: Teal;">x</span><span style="color: Gray;">:</span><span style="color: Blue;">Name</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Position</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Blue;">Text</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Position</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Blue;">Foreground</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Salmon</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Blue;">FontSize</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">20</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">Canvas</span><span style="color: Gray;">.</span><span style="color: Blue;">Left</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">500</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Blue;">Canvas</span><span style="color: Gray;">.</span><span style="color: Blue;">Top</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">350</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&gt;</span></li>
<li><span style="color: Gray;">&lt;</span><span style="color: #8b0000;">/</span><span style="color: Red;">textblock&gt;</span></li></ol></div>
<p>The related function is like this:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">private</span><span style="color: Gray;"> </span><span style="color: Green;">void</span><span style="color: Gray;"> </span><span style="color: Blue;">Canvas_MouseMove</span><span style="color: Olive;">(</span><span style="color: Blue;">object</span><span style="color: Gray;"> </span><span style="color: Blue;">sender</span><span style="color: Gray;">, </span><span style="color: Blue;">MouseEventArgs</span><span style="color: Gray;"> </span><span style="color: Blue;">e</span><span style="color: Olive;">)</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Teal;">Point</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">p</span><span style="color: Gray;"> = </span><span style="color: Blue;">e</span><span style="color: Gray;">.</span><span style="color: Blue;">GetPosition</span><span style="color: Olive;">(</span><span style="color: Green;">this</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">Position</span><span style="color: Gray;">.</span><span style="color: Blue;">FontSize</span><span style="color: Gray;"> = </span><span style="color: Maroon;">15</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">Position</span><span style="color: Gray;">.</span><span style="color: Blue;">Text</span><span style="color: Gray;"> = </span><span style="color: Blue;">string</span><span style="color: Gray;">.</span><span style="color: Blue;">Format</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Position({0}:{1})</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: Blue;">p</span><span style="color: Gray;">.</span><span style="color: Blue;">X</span><span style="color: Gray;">, </span><span style="color: Blue;">p</span><span style="color: Gray;">.</span><span style="color: Blue;">Y</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span></li></ol></div>
<p>Run the project, the page shows like the following pic:</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image004_2.gif"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="clip_image004" src="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image004_thumb.gif" width="500" height="366" /></a></p>
<p>Move mouse so that the cursor is on the left picture, the pic changes and the cursor position shows:</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image006_2.gif"><img border="0" alt="clip_image006" src="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image006_thumb.gif" width="500" height="377" /></a></p>
<p>When the mouse leaves left pic, click the right one and keep left button not released, you can see both the left pic and the text block&#8217;s content change.</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image008_2.gif"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="clip_image008" src="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image008_thumb.gif" width="500" height="365" /></a></p>
<p>Release left mouse button, the text changes again:</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image010_2.gif"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="clip_image010" src="http://www.donotyet.com/wp-content/uploads/2009/10/WindowsLiveWriterMouseEventofSilverlight3withFullSourceCo_14033clip_image010_thumb.gif" width="500" height="83" /></a></p>
<p>By now you are able to manage the mouse event in Silverlight 3. The source code of the three sample has been attached and you can download it as a reference <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Download" border="0" alt="Download" src="http://www.donotyet.com/wp-content/uploads/2009/10/Download_thumb3.png" width="19" height="19" /><a href="http://www.donotyet.com/ext/MousePractice.zip" target="_blank">here</a>. </p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.donotyet.com/2009/10/30/a-simple-silverlight-application-with-button-control/" title="A Simple Silverlight Application with Button Control">A Simple Silverlight Application with Button Control</a></li>
<li><a href="http://www.donotyet.com/2009/10/28/introduction-of-microsoft-expression-blend/" title="Introduction of Microsoft Expression Blend">Introduction of Microsoft Expression Blend</a></li>
<li><a href="http://www.donotyet.com/2009/10/25/easily-create-your-silverlight-page-with-bordercontrol-togglebuttoncontrol-imagecontrol-controls/" title="Easily Create Your Silverlight Page With BorderControl, ToggleButtonControl &amp; ImageControl Controls etc">Easily Create Your Silverlight Page With BorderControl, ToggleButtonControl &amp; ImageControl Controls etc</a></li>
<li><a href="http://www.donotyet.com/2009/10/18/how-to-deploy-the-development-environment-for-silverlight-3/" title="How to Deploy the Development Environment for Silverlight 3">How to Deploy the Development Environment for Silverlight 3</a></li>
<li><a href="http://www.donotyet.com/2009/10/08/silverlight-is-so-charming/" title="Silverlight Is So Charming">Silverlight Is So Charming</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.donotyet.com/2009/10/31/mouse-event-of-silverlight-3-with-full-source-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

