Click here to Skip to main content
15,904,926 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i created a custom window frame for my project and wondering how do i make the button flat like the IDE Visual studio where the buttons are flat no like 3D i think its something got to do with appearance my source is below.

C#
<Button x:Name="PART_WindowCaptionMinimizeButton"
Visibility="{TemplateBinding ResizeMode, Converter={StaticResource MinimizeVisibilityConverter}}"
Content="_"
Margin="0,0,4,0"/>
Posted

You should alter your button template. Suggest you do that under
XML
<window.resources>

Please check over here:
http://msdn.microsoft.com/en-us/library/cc278069%28v=vs.95%29.aspx[^]
This is a full example how to alter the template.
 
Share this answer
 
v2
Have a look at these styles

rectangular flat 3d border

flat 3d button style
 
Share this answer
 

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