Click here to Skip to main content
15,898,920 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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,.
Posted

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.
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 10-Feb-11 10:57am    
thank u friend,.
Sergey Alexandrovich Kryukov 10-Feb-11 11:05am    
Good reference and advice, my 5.
Please see, I advice alternative product for drawing XAML, very good thing.
--SA
Sagotharan Jagadeeswaran 12-Feb-11 6:36am    
now iam install blend in my system . thank u .
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
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 10-Feb-11 23:57pm    
thank u friend,.
Sergey Alexandrovich Kryukov 11-Feb-11 23:22pm    
You're welcome.
Are you going to accept the answers formally?
I think you should accept them both.
Thank you.
--SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900