I'm trying what should be an easy bind in my user control:
<UserControl x:Class="MyApp.FlowNode" ...>
<StackPanel>
<Label Content="{Binding Path=Header, RelativeSource={RelativeSource Self}}" />
</StackPanel>
</UserControl>
With the underlying code being:
public partial class FlowNode : UserControl
{
public FlowNode()
{
InitializeComponent();
}
public string Header { get { return "Testing"; } };
}
However, the label stays blank. What am I doing wrong?