I have a UserControl named myControl and there is a 3 columns Grid within it.
<Grid Name="main">
<Grid Grid.Column="0"/><Grid Grid.Column="1"/><Grid Grid.Column="2"/>
</Grid>
The client can use it in this way and it is ok.
<myControl />
My problem is, the client want to add an Element into the first column of “main” Grid, like:
<myControl>
<TextBlock Text="abc"/>
</myControl>
In this case, the TextBlock will replace the originated Content, here it is the “main” Grid.
What should I do to support the additional element? Great thanks.
You can use something like following: