Skip to content
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

Auto menu expanding not working for MenuItems with ItemSource binding #758

Closed
madenaras opened this issue Nov 15, 2019 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@madenaras
Copy link

Auto opening the submenu is not working for MenuItems with ItemsSource bindings.

Having a DropDownButton with ItemsSource binding, that binds to a collection of objects that themselves contain collections of objects (like "Dropdown (auto close on click) g" button, but with ItemsSource binding, not manually adding MenuItem elements in XAML).

Adapting the style with

                        <Fluent:DropDownButton.ItemContainerStyle>
                            <Style TargetType="Fluent:MenuItem" BasedOn="{StaticResource Fluent.Ribbon.Styles.MenuItem}">
                                <Setter Value="{Binding Name}" Property="Header"/>
                                <Setter Value="{Binding MoreStuff}" Property="ItemsSource"/>
                            </Style>
                        </Fluent:DropDownButton.ItemContainerStyle>

Problem is pinpointed to File : Fluent.Ribbon\Controls\MenuItem.cs, line 434 and line
450: this.Parent is null.


Environment

  • Fluent.Ribbon __v7.0.0
  • Windows 7/10
  • .NET Framework 4.61
@batzen
Copy link
Member

batzen commented Dec 1, 2019

Could you create a small repro app? I currently don't have enough time to do this myself.

@batzen batzen added the Waiting for user response 😕 Waiting for the reporter to respond to questions made by maintainer. label Dec 1, 2019
@batzen batzen self-assigned this Dec 1, 2019
@madenaras
Copy link
Author

Hello,

Please find a demo app here:
https://github.com/madenaras/FluentTest

Thanks!

@batzen batzen added Bug 🐞 and removed Waiting for user response 😕 Waiting for the reporter to respond to questions made by maintainer. labels Jan 22, 2020
@batzen batzen added this to the Next milestone Jan 22, 2020
@batzen batzen closed this as completed in 160b22f Jan 22, 2020
@batzen batzen modified the milestones: Future, 8.0.0 Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants