I am trying to create a sidebar with tabs with sections, for example in WPF. There are several approaches that I have reviewed, but is there an easier and more elegant way to do this?
Approach 1: ListBox
Using a ListBox and binding the SelectedItem to the value that the content management is bound to on the right. To distinguish between title and sections, I use the DataTemplate selector.
Approach 2: RadioBUtton / Checkboxes / ToggleButtons
Using the radio buttons, I bind the selected item to the content control. However, due to a WPF error, I will have to bind them together using value converters.


source share