-
-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InRibbonGallery behind ComboBox issue. #411
Comments
Also, the drop down always drop down to the items list without grouping first, has to click on expand button to show in grouping mode, is there a way always show grouping view? Thanks in advance. |
Due to limited time i will have to delay investigation of the remaining points. |
This code should do what you expect and might also fix 3. and 4.
|
Thanks a lot for the sample code, I did try an approach very similar. However, using Gallery or GalleryPanel both of them have a fatal issue, there is no scroll bar, as I have a lot of data, both of them are unfit for the task. And for GalleryPanel, I can't make data to display multi columns, even I set MinItemsInRow="5". For selected text binding, this is being ignored when you clicked on something other than an item in the list. For example, if you clicked the group name instead of an item. The combo box will display combo box ToString value, ignoring Selected Text. Function wise, Gallery is the closest one, only missing selected text and scroll bar. |
Just add another few variants about combo box Text binding and Gallery. Text Binding: Anyway, after I change it to binding both way and in view model property set is empty. this way, it seems the Text can stay even when I clicked on for example group name instead of an item. Don't know why this is the case. Gallery: When I filter the items for gallery, which view model is modifying ObservableCollection. This action actually sends a null to SelectedItem, so it will lose the Text binding as well due to SelectedItem has been set to null. MS RibbonComboBox and RibbonGallery don't have this issue, the SelectedItem stays when ObservableCollection being modified. Don't know why SelectedItem value can't stay. It's the same sample project I'm working on. |
MultiColumn: SelectedItem: |
Thanks a lot for your reply. I got the multi column GalleryPanel now. By any chance there is setting to switch on the vertical scroll? |
Will have a look during the weekend. |
You have to set |
Thanks a lot for your help. That did the trick. |
I got a large list of Texts for selection. So the idea is using a combo box front and InRibbonGallery behind for grouping view.
Features:
displaying selected item text as combo box text,
There is a filter text box next to combo box, and when typing in key words in there, the combo box contents filtered to a smaller list of texts.
when user typing in the filter text box, the combo box auto drop down with the filtered texts in grouping view.
If user click combo box, it can expand to grouping view (currently only a small view first, and user has to click on expansion button to see the grouping view. ), and user can select item this way.
I mashed a sample project with above features in mind, however, I'm experiencing quite a few issues. I'm not sure if these features are achievable in this way.
Issues:
Feature 1: combo box can't display selected text for some reason, and sometimes it displays combobox "ToString" value, with class name plus the items count number.
Feature 2: This is all back end code, so it's actually working.
Feature 3: When typing in filter text box, the combo box only sometimes drops the panel, not always. Also, when clicked expanding button when panel dropped. And then click the panel. The panel now is stuck inside the combo box. After that, can't select anything in that list anymore, combo box in a broken state.
Feature 4: all mouse action, this also has the above issue, drop down, expand, click on panel, panel stuck.
So please have a look the sample project and let me know. Thanks in advance.
Environment
WpfApplication1.zip
The text was updated successfully, but these errors were encountered: