RibbonButton不使用图像? [英] RibbonButton without using image?
本文介绍了RibbonButton不使用图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
情况是:
我有一些在Illustrator(.ai文件)中完成的设计或自定义形状.
我导入到Blend中,现在有了用于我的自定义形状的xaml代码.
/>
问题是我如何使用此自定义形状(画布,路径等)作为RibbonButton的图像?
我想到了使用样式和控件模板,但是我做了什么尝试看起来____并且标签不见了.
有人可以给我提供一个示例方法吗?
The situation is:
I have a few design or custom shape done in Illustrator (.ai file)
I import into Blend and and I have the xaml code for my custom shape now.
The question is how i use this custom shape (Canvas, path, etc) as my image of RibbonButton?
I thought of using the style and controltemplate but what I have tried it looks ____ and the label has gone.
Can anyone provide me a sample of how to do this?
推荐答案
为什么不将结果另存为png文件,然后将png的uri设置为LargeImageSource和SmallImageSource? >
无论如何,您应该做的是创建结果的ImageSource.
Why don't you save the result as a png file and then set the uri of the png to the LargeImageSource and SmallImageSource?
Anyway, what you should do is create an ImageSource of your result.
这篇关于RibbonButton不使用图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文