I have created a user control (link) which has a label and a button.
I would like for the control to have a property called Text which sets the content of the label.
In XAML
<my:SomeUserControl Text="Hello" />
which actually sets the
<Label Content="Hello">
in my user control.
How can I create this?
make da dependency property in your user control. Give your user control in the xaml a name, like
and bind it inside your xaml like this.