Reputation: 70287
I want to create a custom control named DetailRegion that accepts a collection of child controls. From there I want layout the controls in a manner of my choosing. For example...
<localControls:DetailRegion>
<TextBlock Text="Occupation:" Style="{StaticResource Label}" />
<TextBlock Text="{Binding Occupation}" Style="{StaticResource Value}" />
</localControls:DetailRegion>
... may be rendered as a grid with two columns or a stack panel depending on screen width.
I'm not asking for a complete solution, I just need tutorial to get me started.
Upvotes: 1
Views: 195