3

I am new to WPF development, I am creating a button style as per my designer provided it. enter image description here

While creating button, I am facing an weird problem. I am not finding way Remove button Radius. I tried "Round Corner = false", but it is removing only Right side round corners. Moreover I am not finding way how to remove Inner silver border in button. I think this issue is caused because there is a default style applied to button, (chrome style in my case).

enter image description here

Is there any way to can I remove all round corners and Inner Border.

Thanks in anticipation.

1
  • 1
    Can you post your Xaml style Commented Dec 20, 2012 at 5:56

1 Answer 1

5

see this link http://msdn.microsoft.com/en-us/library/cc278069%28v=vs.95%29.aspx
and the
<ControlTemplate TargetType="Button">
part and find this line
<Border x:Name="Background" CornerRadius="3" ...
and as you gussed this is why. To change, you should use your custom style.
this linke might help you too: http://msdn.microsoft.com/en-us/magazine/cc163421.aspx

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.