Friday, April 20, 2007

Refering inner element through XAML

<StackPanel >
<TextBlock Text="{Binding ElementName=btn,Path=Foreground.Color.R}">
</TextBlock>
<Button Foreground="Red" Name="btn"/>

</StackPanel>

No comments:

Post a Comment