<?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>Identity Interface &#187; wpf</title>
	<atom:link href="http://jonshern.com/tag/wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonshern.com</link>
	<description>I should know better</description>
	<lastBuildDate>Sat, 21 Jan 2012 23:10:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Click Detection in a WPF Listview</title>
		<link>http://jonshern.com/2008/07/08/click-detection-in-a-wpf-listview/</link>
		<comments>http://jonshern.com/2008/07/08/click-detection-in-a-wpf-listview/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 04:57:56 +0000</pubDate>
		<dc:creator>Jon Shern</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://jonshern.com/?p=107</guid>
		<description><![CDATA[Once you have the event wired up, getting the current row only takes a couple lines of code.

&#160;
        private void listPictures_MouseDoubleClick&#40;object sender, MouseButtonEventArgs e&#41;
        &#123;
            Shern.PhotoManager.Common.ImageProperty value = &#40;Shern.PhotoManager.Common.ImageProperty&#41;listPictures.SelectedValue;
  [...]]]></description>
			<content:encoded><![CDATA[<p>Once you have the event wired up, getting the current row only takes a couple lines of code.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">&nbsp;
        <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> listPictures_MouseDoubleClick<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, MouseButtonEventArgs e<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            Shern.<span style="color: #0000FF;">PhotoManager</span>.<span style="color: #0000FF;">Common</span>.<span style="color: #0000FF;">ImageProperty</span> value <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>Shern.<span style="color: #0000FF;">PhotoManager</span>.<span style="color: #0000FF;">Common</span>.<span style="color: #0000FF;">ImageProperty</span><span style="color: #000000;">&#41;</span>listPictures.<span style="color: #0000FF;">SelectedValue</span><span style="color: #008000;">;</span>
            PictureViewer pictureViewer <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> PictureViewer<span style="color: #000000;">&#40;</span>value.<span style="color: #0000FF;">FileName</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            pictureViewer.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span></pre></div></div>

<p>In this example ImageProperty is the type that is bound to the ListView control.</p>
]]></content:encoded>
			<wfw:commentRss>http://jonshern.com/2008/07/08/click-detection-in-a-wpf-listview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

