I currently have a combobox in my statusbar for controlling the zoomlevel of a canvas in my WPF application. I now want to move this into a menu instead of having it in a separate combobox.
My current solution looks like this:
<ComboBox ItemsSource="{Binding ZoomLevels}" SelectedValue="{Binding Path=Scale, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource PercentageConverter}}" />
</DataTemplate>
</ComboBox.ItemTemplate>
I'm pretty sure i can just put the current combobox in a menuitem in the menu, but that's not really what I'm looking for. I want something like this, where i can select one of the following encodings:
Any hints to how i would do this i WPF?