首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >功能区中的第一个组定义不显示图标

功能区中的第一个组定义不显示图标
EN

Stack Overflow用户
提问于 2012-07-27 03:27:03
回答 1查看 1.4K关注 0票数 2

我正在尝试使用流畅功能区中的布局定义。我遇到的问题是它没有在第一个Group定义中的按钮上显示图标。下面是相应的代码片段:

代码语言:javascript
复制
<Fluent:RibbonToolBar>
    <Fluent:RibbonToolBar.LayoutDefinitions>
        <Fluent:RibbonToolBarLayoutDefinition Size="Large">
            <Fluent:RibbonToolBarRow>
                <Fluent:RibbonToolBarControlGroupDefinition>
                    <Fluent:RibbonToolBarControlDefinition Target="buttonCameraLock" />
                </Fluent:RibbonToolBarControlGroupDefinition>
                <Fluent:RibbonToolBarControlGroupDefinition>
                    <Fluent:RibbonToolBarControlDefinition Target="buttonPanMode" />
                    <Fluent:RibbonToolBarControlDefinition Target="buttonRoamMode" />
                </Fluent:RibbonToolBarControlGroupDefinition>
            </Fluent:RibbonToolBarRow>
        </Fluent:RibbonToolBarLayoutDefinition>                        
    </Fluent:RibbonToolBar.LayoutDefinitions>

    <Fluent:Button x:Name="buttonCameraLock"
                       Icon="histogram_small.png"
                       HorizontalAlignment="Center"
                       SizeDefinition="Small" />
    <Fluent:Button x:Name="buttonPanMode"
                       Icon="histogram_small.png"
                       HorizontalAlignment="Center"
                       SizeDefinition="Small" />
    <Fluent:Button x:Name="buttonRoamMode"
                       Icon="histogram_small.png"
                       HorizontalAlignment="Center"
                       SizeDefinition="Small" />
</Fluent:RibbonToolBar>

在本例中,第一个按钮存在,但没有图标。如果我将它们全部放在一个组中,则所有按钮都没有图标。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-07-27 20:07:03

我找到了这个问题的解决方案。为了简洁起见,我在代码片段中省略了图标是用相对路径设置的。这显然是一个已知的bug。将它们设置为硬编码路径解决了问题。

http://fluent.codeplex.com/workitem/18947

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11676630

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档