wpf Bind to property of another named element


Example

You can bind to a property on a named element, but the named element must be in scope.

<StackPanel>
    <CheckBox x:Name="MyCheckBox" IsChecked="True" />
    <TextBlock Text="{Binding IsChecked, ElementName=MyCheckBox}" />
</StackPanel>