Mahapps.metro: Multi-select combo box with check marks

Created on 20 May 2020  路  6Comments  路  Source: MahApps/MahApps.Metro

Is your feature request related to a problem? Please describe.
I currently used an open source fork of extended wpf toolkit because of their CheckComboBox component. Is there any way to replace it with something from MahApps?

Describe the solution you'd like
A simple and reliable way to replace this:

<xctk:CheckComboBox
ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Page}}, Mode=OneWay, UpdateSourceTrigger=PropertyChanged, Path=DataContext.Tags}"
      d:DataContext="{d:DesignInstance entities:EventEntity}"
      DisplayMemberPath="Name"
      ItemSelectionChanged="Selector_OnItemSelectionChanged"
      SelectedItemsOverride="{Binding SelectedTags, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
      Foreground="{DynamicResource MahApps.Brushes.Text}" />

Additional context
This is a member of a custom datagrid column. I need it to be able to bind and immidiately update all items that are selected with checkmarks. (this is used in edit item scenario where list sends edited object to editor and page just binds everything to this object, so any items that were previously selected have to be updated)

Feature Request

Most helpful comment

I have also a need for such a control. At the moment I use my own control which does all I need. I don't know if such a control is a good control in terms of UI / UX. Below is a preview of the current implementation:

DemoAppExample

Example of a MultiSelectionComboBox

Features at the Moment:

  • different DataTemplates for Items and SelectedItems
  • different SelectionModes
  • DataTemplate for overlay if the Text is userdefined
  • Editable mode like a normal ComboBox

@punker76 if you want to implement this control, I can make a PR here.

Happy coding
Tim

All 6 comments

I have also a need for such a control. At the moment I use my own control which does all I need. I don't know if such a control is a good control in terms of UI / UX. Below is a preview of the current implementation:

DemoAppExample

Example of a MultiSelectionComboBox

Features at the Moment:

  • different DataTemplates for Items and SelectedItems
  • different SelectionModes
  • DataTemplate for overlay if the Text is userdefined
  • Editable mode like a normal ComboBox

@punker76 if you want to implement this control, I can make a PR here.

Happy coding
Tim

@timunie Looks great, please post the code here and maybe we can add it.

@timunie I meant that we can implement it and send a pull request. I am pretty sure @punker76 Would not object to that. I will take a crack at it during this weekend.

@Luk164 I have already #3710 and #3825 in the pipeline 馃槃 ... Let's wait until this is done. Thank you.

@Luk164 please give me your ideas / feedback to #4006 .

Thank you and Happy coding
Tim

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kayone picture kayone  路  10Comments

oschwab picture oschwab  路  17Comments

fredericoregateiro picture fredericoregateiro  路  10Comments

furqansafdar picture furqansafdar  路  11Comments

feinstein picture feinstein  路  18Comments