Question

I want the contents of a group box to be selected by value, so how I do write the XAML to do this?

<GroupBox Header="Specific details"
    ContentTemplateSelector={StaticResource someSelector}>

...

</GroupBox>

The template selector will let me select which template to use, but what I can't figure is the syntax to associate this group box with a value in a variable somehow?

Was it helpful?

Solution

The answer is to use a TabControl with no headers and let the SelectedIndex be set by the value.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top