WPF中的Expander图标 [英] Expander icon in WPF

查看:920
本文介绍了WPF中的Expander图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨......





如何更改扩展器的默认图标。喜欢treeview图标......请帮帮我......

Hi....


How to change default icon of an expander. Like treeview icon... please help me....

推荐答案

请看这篇文章: http://diptimayapatra.wordpress.com/2010/04/05/customize-expander-control-in-wpf/ [< a href =http://diptimayapatra.wordpress.com/2010/04/05/customize-expander-control-in-wpf/\"target =_ blanktitle =New Window> ^ ]。



它详细解释了它;他们唯一的问题是它提供了更多的自定义功能,但你应该能够理解它。自定义箭头位图只是本文的一小部分。



-SA
Please see this article: http://diptimayapatra.wordpress.com/2010/04/05/customize-expander-control-in-wpf/[^].

It explains it in detail; they only problem that it provides a lot more customization feature, but you should be able to get the idea. Customization of the arrow bitmap is only one small part of the article.

—SA


我认为你将不得不为控件创建一个模板并在模板中设置它。
I think you are going to have to create a template for the control and set this in the template.


这篇关于WPF中的Expander图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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