如何将图像嵌入按钮? [英] how to embed image to a button?

查看:79
本文介绍了如何将图像嵌入按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将图像嵌入按钮?我已经创建了一个按钮但我想添加一个图像,因此它将成为一个图标按钮。我不知道如何使用contentpresenter。

How to embed image to a button? I've already created a button but i want to add an image to it so it will become an icon button. I don't know how to use contentpresenter.

推荐答案

非常简单

删除contentpresenter并将图像放在边框内(内容演示者的父级)并设置图像的源....
Its very simple
Remove the contentpresenter and place an image within a border(the parent of content presenter) and set source for the image....


这篇关于如何将图像嵌入按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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