Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
HI,
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.
Posted 21-Nov-12 20:28pm
Comments
Sergey Alexandrovich Kryukov at 22-Nov-12 2:32am
   
What is "button" exactly. There are different classes named "Button". Full name, please. In other words, tag your UI library. The problem is quite solvable, but the solution would be very different for different kinds of UI...
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
 
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...
  Permalink  
Comments
Rupali Jadhav at 24-Nov-12 5:41am
   
Thanks for your suggestion, it will work fine for button but now i want to use this effect for other user defined controls. Any other suggestion please.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 550
1 Sergey Alexandrovich Kryukov 420
2 George Jonsson 288
3 Pheonyx 218
4 OriginalGriff 200
0 OriginalGriff 4,813
1 CPallini 3,850
2 Sergey Alexandrovich Kryukov 3,224
3 George Jonsson 2,552
4 Gihan Liyanage 2,186


Advertise | Privacy | Mobile
Web04 | 2.8.140905.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100