<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Binding on Bits and Pieces</title>
		<link>https://bits.strawjackal.org/tags/binding/</link>
		<description>Recent content in Binding on Bits and Pieces</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Thu, 01 Sep 2011 11:28:20 +0200</lastBuildDate>
		
			<atom:link href="https://bits.strawjackal.org/tags/binding/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>WPF: Snooping Attached Properties</title>
				<link>https://bits.strawjackal.org/114/</link>
				<pubDate>Thu, 01 Sep 2011 11:28:20 +0200</pubDate>
				<guid>https://bits.strawjackal.org/114/</guid>
				<description>&lt;p&gt;When developing WPF applications, &lt;a href=&#34;http://snoopwpf.codeplex.com/&#34;&gt;Snoop&lt;/a&gt; is a wonderful tool that can let us see our visual tree at runtime, and find errors in data binding that are otherwise hard to track down in debugging. However, Snoop has an annoying limitation – it can’t show us data-bound Attached Properties. Let’s say we have the following XAML:   &lt;pre style=&#34;border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px&#34;&gt;&lt;pre style=&#34;background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&amp;#39;Courier New&amp;#39;,courier,monospace; font-size: 12px&#34;&gt;&lt;span style=&#34;color: #0000ff&#34;&gt;&amp;laquo;/span&amp;gt;&lt;span style=&#34;color: #800000&#34;&gt;Canvas&lt;/span&gt;&lt;span style=&#34;color: #0000ff&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/pre&gt;&lt;pre style=&#34;background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&amp;#39;Courier New&amp;#39;,courier,monospace; font-size: 12px&#34;&gt;   &lt;span style=&#34;color: #0000ff&#34;&gt;&amp;laquo;/span&amp;gt;&lt;span style=&#34;color: #800000&#34;&gt;Button&lt;/span&gt; &lt;span style=&#34;color: #ff0000&#34;&gt;Canvas&lt;/span&gt;.&lt;span style=&#34;color: #ff0000&#34;&gt;Left&lt;/span&gt;=&lt;span style=&#34;color: #0000ff&#34;&gt;&amp;quot;{Binding Location.X}&amp;quot;&lt;/span&gt;&#xA;&lt;/pre&gt;&lt;pre style=&#34;background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&amp;#39;Courier New&amp;#39;,courier,monospace; font-size: 12px&#34;&gt;           &lt;span style=&#34;color: #ff0000&#34;&gt;Canvas&lt;/span&gt;.&lt;span style=&#34;color: #ff0000&#34;&gt;Top&lt;/span&gt;=&lt;span style=&#34;color: #0000ff&#34;&gt;&amp;quot;{Binding Location.Y&amp;quot;&lt;/span&gt;}&lt;span style=&#34;color: #0000ff&#34;&gt;/&amp;gt;&lt;/span&gt;&#xA;&lt;/pre&gt;&lt;pre style=&#34;background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&amp;#39;Courier New&amp;#39;,courier,monospace; font-size: 12px&#34;&gt;&lt;span style=&#34;color: #0000ff&#34;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#34;color: #800000&#34;&gt;Canvas&lt;/span&gt;&lt;span style=&#34;color: #0000ff&#34;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
