Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top