Debug Bindings Using Attached Properties
<Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase" Title="WpfApplication1" Height="300" Width="300"> <Grid x:Name="gdLayoutRoot"> <Viewbox> <TextBlock x:Name="tbkTextBlock"> <TextBlock.Text> <Binding ElementName="gdLayoutRoot" Path="ActualWidth" diagnostics:PresentationTraceSources.TraceLevel="High" /> </TextBlock.Text> <TextBlock.Height> <Binding ElementName="gdLayoutRoot" Path="Name" diagnostics:PresentationTraceSources.TraceLevel="High" /> </TextBlock.Height> </TextBlock> </Viewbox> </Grid> </Window>