如何在wpf功能区控件中显示图像或徽标? [英] How to display an image or logo in wpf ribbon control?

查看:67
本文介绍了如何在wpf功能区控件中显示图像或徽标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

主要在功能区控件右侧显示图像或徽标的最佳方法是什么?



非常感谢。



这是我的代码。



What is the best way to show an image or logo mostly on the right side of a ribbon control?

Many thanks.

This is my code.

<ribbon:RibbonGroup  x:Name="aaa" Margin="0,0" Width="auto" >
    <Canvas>
        <Image Canvas.Left="{Binding myMargin}" Canvas.Top="10" Stretch="UniformToFill" Source="Images/myLogo.gif"/>
    </Canvas>
</ribbon:RibbonGroup>

Property myMargin As String = (System.Windows.SystemParameters.PrimaryScreenWidth - 350).ToString + ",70,0,0"

推荐答案

WPF 4.5中的功能区控件 [ ^ ]应该有所帮助。
Ribbon Control in WPF 4.5[^] should help.


这篇关于如何在wpf功能区控件中显示图像或徽标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆