框架4.0中产生下沉效果的替代方法 [英] Alternative for raised and sunken effect in framework 4.0

查看:96
本文介绍了框架4.0中产生下沉效果的替代方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,
我想为按钮创建凸起和凹陷的效果.由于位图效果在Framework 4.0中已过时,因此无法做到这一点.所有人都说效应是替代方案,但是我没有得到解决方案,如何为我的问题寻求解决方案.任何人都可以告诉我如何在不使用位图效果的情况下创建凸起效果或如何使用效果.

等待答复.


I want to create raised and sunken effect for button. As bitmap effects are obsolete in framework 4.0 am not able to do so. Everybody says Effect is alternative to this but i am not getting solution how to get solution for my question. Can any body tell me, how to create raised effect without bitmap effect or using Effect.

waiting for reply.

推荐答案

好吧,您可以做我为Compact Framework做的事情(由于UI控件的限制)

我在按钮后面放置了一个标签,因此它显示为一个阴影,并且由于Windows 8中的所有内容都是扁平的,因此我猜这将不需要很长时间.


Well you could do what I do for Compact Framework (Due to limitations on UI Controls)

I place a Label behind the button, so it appears as a drop shadow, and due to everything in Windows 8 being flat, I guess that would be not needed for very long.


 xxxx
oooox
oooox
oooo



类似于o =按钮和x =标签

我通常将标签3光标按下并向右3.但是可以玩...



Similar to that where o = button and x = label

I usually have the label 3 cursor presses up and 3 to the right. But have a play around...


这篇关于框架4.0中产生下沉效果的替代方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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