WPF ModernUI same footer for all pages

廉价感情. 提交于 2019-12-24 08:27:14

问题


I'm trying to implement something-like-footer (same content/page for whole app) in my ModernUI WPF app. In mainwindow.xaml I have basic Menu (expanded examples)

    <mui:ModernWindow.MenuLinkGroups>
        <mui:LinkGroup DisplayName="Sports">
            <mui:LinkGroup.Links>
                <mui:Link DisplayName="Home" Source="/Pages/Home.xaml"/>
                <mui:Link DisplayName="Football" Source="/Pages/Sports/Football.xaml" />
                <mui:Link DisplayName="Handball" Source="/Pages/Sports/Handball.xaml" />
                <mui:Link DisplayName="Basketball" Source="/Pages/Sports/Basketball.xaml" />
                <mui:Link DisplayName="Tennis" Source="/Pages/Sports/Tennis.xaml" />
                <mui:Link DisplayName="Volleyball" Source="/Pages/Sports/Volleyball.xaml" />
                <mui:Link DisplayName="Beach handball" Source="/Pages/Sports/BeachHandball.xaml" />
                <mui:Link DisplayName="General settings" Source="/Pages/Settings.xaml" />
                <mui:Link DisplayName="About" Source="/Pages/About.xaml" />
            </mui:LinkGroup.Links>
        </mui:LinkGroup>
    </mui:ModernWindow.MenuLinkGroups>

I have tried adding <mui:ModernWindow.MenuLinkGroups> to grid element, however I get The member "MenuLinkGroups" is not recognized or is not accessible error.

Edit:

I have also tried using <mui:ModernFrame> element and adding source with my constant content, after </mui:ModernWindow.MenuLinkGroups> however it doesn't work (it isn't rendered at all).

Any ideas or advices how to get something like footer in ModernUI are highly appreciated.

Many thanks!


回答1:


You need to modify the ModernWindow style and template. There is a good tutorial here:

http://www.c-sharpcorner.com/UploadFile/3789b7/modern-ui-for-wpf-application-by-example-default-window-wit/



来源:https://stackoverflow.com/questions/23596190/wpf-modernui-same-footer-for-all-pages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!