<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Mark Schmidt's Abode : Avalon</title><link>http://blogs.msdn.com/markhsch/archive/tags/Avalon/default.aspx</link><description>Tags: Avalon</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>WPF Post-it Board source updated</title><link>http://blogs.msdn.com/markhsch/archive/2006/10/05/WPF-Post_2D00_it-Board-source-updated.aspx</link><pubDate>Fri, 06 Oct 2006 00:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:794659</guid><dc:creator>markhsch</dc:creator><slash:comments>139</slash:comments><comments>http://blogs.msdn.com/markhsch/comments/794659.aspx</comments><wfw:commentRss>http://blogs.msdn.com/markhsch/commentrss.aspx?PostID=794659</wfw:commentRss><wfw:comment>http://blogs.msdn.com/markhsch/rsscomments.aspx?PostID=794659</wfw:comment><description>&lt;P&gt;Ok, first off let me say that I really really don't try to just create a blog entry that simply links to someone elses blog entry. Most of what I blog about comes straight out of my head and usually involves the use of an IDE and source code. However, the &lt;A href="http://xamlxaml.com/2006/10/05/postitboard-update-for-net-30-rc1/" target=_blank mce_href="http://xamlxaml.com/2006/10/05/postitboard-update-for-net-30-rc1/"&gt;PostIt Board&lt;/A&gt; project created by &lt;A href="http://xamlxaml.com/about/" mce_href="http://xamlxaml.com/about/"&gt;Michael G. Emmons&lt;/A&gt; is just too cool to not say anything.&lt;/P&gt;
&lt;P&gt;Written using WPF, it interfaces with Flickr and allows you to do a search and display the results as small thumbnails on a post it board interface (see picture below). The source is included. Here are some things I had to do to get it to run and to make the canvas movable.&lt;/P&gt;
&lt;P&gt;1. Open the solution and delete the FlickrFX.snk.pfx file from the FlickrFX project (note that when you open the project it will ask for a password to open that file. Simply hit cancel and then go and delete it).&lt;/P&gt;
&lt;P&gt;2. The code to move the window is commented out. When I uncomment it I can move the window but clicking on a picture causes the picture to move off screen. Here's the code to fix this so you can move the window as well as move any image.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;protected&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;override&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;void&lt;/SPAN&gt; OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
    IInputElement iie &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: courier new"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;this&lt;/SPAN&gt;.InputHitTest(e.GetPosition(&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;this&lt;/SPAN&gt;));
    &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;if&lt;/SPAN&gt; (iie is System.Windows.Controls.Canvas)
    {
        &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;base&lt;/SPAN&gt;.OnMouseLeftButtonDown(e);
        &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: courier new"&gt;this&lt;/SPAN&gt;.DragMove();
    }
} &lt;/PRE&gt;
&lt;P&gt;&lt;IMG height=297 src="http://blogs.msdn.com/photos/markhsch/images/794655/640x457.aspx" width=454 mce_src="http://blogs.msdn.com/photos/markhsch/images/794655/640x457.aspx"&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=794659" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/markhsch/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/markhsch/archive/tags/Cool+Stuff/default.aspx">Cool Stuff</category><category domain="http://blogs.msdn.com/markhsch/archive/tags/Avalon/default.aspx">Avalon</category></item></channel></rss>