0

我对应用程序菜单的 LargeImageSource 有奇怪的问题(使用 Office2007Blue 主题)

我的图像是 48x48,但它似乎缩小到 10x10。它根本没有使用 SmallImageSource。

<r:Ribbon.ApplicationMenu>
            <r:RibbonApplicationMenu>
                <r:RibbonApplicationMenu.Command>
                    <r:RibbonCommand
                        SmallImageSource="images/icon.png"
                        LargeImageSource="images/icon.png"
                        ToolTipTitle="Application Menu"
                        ToolTipDescription="Click here to open files or close the application." />
                </r:RibbonApplicationMenu.Command>
                <r:RibbonApplicationMenuItem>
                    <r:RibbonApplicationMenuItem.Command>
                        <r:RibbonCommand 
                            LabelTitle="_Close" 
                            LabelDescription="Close the Application"
                            />
                    </r:RibbonApplicationMenuItem.Command>
                </r:RibbonApplicationMenuItem>
            </r:RibbonApplicationMenu>
        </r:Ribbon.ApplicationMenu>
4

2 回答 2

0

The WPF Ribbon is full of bugs. This one in particular is because the SmallImageSource Image is hardcoded to 16x16 in the RibbonApplicationMenu's control template. LargeImageSource isn't even used anywhere in the default theme.

于 2012-11-01T10:08:33.080 回答
0

更改图像的打印尺寸修复了它。该按钮不查看像素尺寸。

于 2009-10-30T02:26:43.397 回答