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

MaterialDesign DialogHost issue with FluentRibbon #285

Closed
chrisklepeis opened this issue Mar 23, 2016 · 2 comments
Closed

MaterialDesign DialogHost issue with FluentRibbon #285

chrisklepeis opened this issue Mar 23, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@chrisklepeis
Copy link

Using:

  • Latest stable release of Fluent Ribbon
  • .Net 4.6.1
  • Office 2013 theme
  • Windows 7

After my issue posted here MaterialDesignInXAML/MaterialDesignInXamlToolkit#299 , I tried just using a global DialogHost ("RootDialog") that wraps my entire application, in my main xaml window file.

When using this with Fluent Ribbon, the main menu button does not work properly - it looks like it gets clicked but the menu doesn't slide out using the Office 2013 theme in Fluent Ribbon.I'm not sure if the issue is with MaterialDesign or Fluent Ribbon but I will be posting this issue in both places.

Sample project attached.

MaterialRibbonDemo.zip

@ButchersBoy
Copy link

MD issue: MaterialDesignInXAML/MaterialDesignInXamlToolkit#307
Sample repo: https://github.com/chrisklepeis/MaterialRibbonDemo

Had a look at this, I can also reproduce by adding a Grid/AdornerDecorator directly to the root of a window (which is effectively what MD.DialogHost does):

    <Grid>
        <AdornerDecorator>
            <ContentPresenter>
                <ContentPresenter.Content>
                    <fluent:Ribbon Grid.Row="0" x:Name="ribbon">
                        <fluent:Ribbon.Menu>
                            <fluent:Backstage x:Name="backstage" Header="Menu (doesn't work)">
                                <fluent:BackstageTabControl x:Name="backstageTab">
                                    <fluent:Button fluent:KeyTip.Keys="L" Header="Logout" />
                                    <fluent:Button fluent:KeyTip.Keys="X" Header="Exit" />
                                </fluent:BackstageTabControl>
                            </fluent:Backstage>
                        </fluent:Ribbon.Menu>
                    </fluent:Ribbon>
                </ContentPresenter.Content>
            </ContentPresenter>
        </AdornerDecorator>
    </Grid>

Is this something to do with the way fluent operates with an expected adorner?

@batzen
Copy link
Member

batzen commented Mar 23, 2016

Thanks for having a look @ButchersBoy
Will have a look @chrisklepeis

@batzen batzen self-assigned this Mar 23, 2016
@batzen batzen added this to the 4.0.0 milestone Mar 23, 2016
@batzen batzen closed this as completed in 413cecf Mar 23, 2016
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

3 participants