是否想在WPF中使用非发光按钮? [英] WANT Non Gloving Button in WPF?

查看:59
本文介绍了是否想在WPF中使用非发光按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我使用wpf4.

进入鼠标时,这些按钮变钝了.但是我想要一个不像窗口按钮一样手套的标准按钮. ;)

在我的项目中想要图像按钮.但是wpf4没有imagebutton.所以我在图像上使用按钮.

像这样..

<按钮Canvas.Left ="85" Canvas.Top ="20" Height ="62" Name ="button1" Width ="246" BorderBrush ="{x:Null}"前景="{x:Null}" Background ="{x:Null}">

< Image Source ="Images \ bgfortime.jpg" Height ="57" Width ="238"/>

</Button>

您对这个问题有什么想法?

[注意]-如果可以使用无手套按钮,则无需自定义控件. :)

谢谢.

Hello Friends,

Iam using wpf4.

the buttons are gloving when the mouse are entering. but i want a standard button which is not gloving like window button. ;)

In my project want, image button. but wpf4 not have imagebutton. So i use button with image,.

like this,..

<Button Canvas.Left="85" Canvas.Top="20" Height="62" Name="button1" Width="246" BorderBrush="{x:Null}" Foreground="{x:Null}" Background="{x:Null}">

<Image Source="Images\bgfortime.jpg" Height="57" Width="238" />

</Button>

whats your Idea for this problem,.

[note] - if non gloving button is possible, then no need of custom control. :)

Thank u,.

推荐答案

您可以为按钮创建自定义样式.

本文应该可以帮助您入门.

顺便提一句.我建议使用Expression Blend进行自定义样式,它比Visual Studio提供更好的设计时支持.
You can create a custom style for the button.

This article should get you started.

btw. I recommend using Expression Blend for custom styling, it provides much better design-time support than Visual Studio.


图形的替代答案:您不必具有Expression Blend. /> 您可以使用矢量图形编辑器Inkscape: http://en.wikipedia.org/wiki/Inkscape [ ^ ].

这是一个很棒的开源产品(非常方便快捷),现在可以保存到XAML.由于矢量图形基于SVG( http://en.wikipedia.org/wiki/SVG [ ^ ]),仅应使用某些功能子集,因为SVG的功能要多得多功能比XAML丰富.

—SA
Alternative answer on graphics: you don''t have to have Expression Blend.
You can use the vector graphic editor Inkscape: http://en.wikipedia.org/wiki/Inkscape[^].

This is wonderful Open Source product (incredibly fast and convenient) that now allows saving to XAML. As the vector graphics is based on SVG (http://en.wikipedia.org/wiki/SVG[^]), only certain subset of features should be used, because SVG is considerably more feature-rich than XAML.

—SA


这篇关于是否想在WPF中使用非发光按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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