<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>presentationlayer</title>
	<link>http://presentationlayer.info</link>
	<description>Be the guy asking all the questions.</description>
	<lastBuildDate>Mon, 11 May 2009 08:32:39 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Trace Bindings in WPF</title>
		<description><![CDATA[How to trace bindings in WPF?
First add the namespace to your xaml file like this:

&#60;ResourceDictionary xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
 xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;
 xmlns:diagnostics=&#8221;clr-namespace:System.Diagnostics;assembly=WindowsBase&#8221;&#62;

Then add the additional magic to your Binding like this:

&#60;ControlTemplate.Triggers&#62;
 &#60;DataTrigger Binding=&#8221;{Binding diagnostics:PresentationTraceSources.TraceLevel=High, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type c:ScrollViewerWithVisibilityDetectionControl}}, Path=ShowGradient}&#8221; Value=&#8221;false&#8221;&#62;
 &#60;!&#8211; setters here &#8211;&#62;
 &#60;/DataTrigger&#62;
 &#60;/ControlTemplate.Triggers&#62;

Now you get detailed information in the Output window of Visual Studio.  
]]></description>
		<link>http://presentationlayer.info/?p=3</link>
			</item>
</channel>
</rss>
