What's the DataContext
of your TextBoxView
? It seems like you want to bind to the properties of the TextBoxView
itself. So, you can set the DataContext
of the TextBoxView
to itself. Something like:
<Grid>
<v:TextBoxView DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}"
TxtLabel="Label 1" />
<v:TextBoxView DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}"
TxtLabel="Label 2" />
</Grid>