WPF button template alignment not setting correctly

Posted by Dave Colwell on Stack Overflow See other posts from Stack Overflow or by Dave Colwell
Published on 2010-05-11T23:27:49Z Indexed on 2010/05/11 23:34 UTC
Read the original article Hit count: 261

Filed under:
|
|

Hi guys,
I have created a button template consisting of a border and a content presenter. A style is then wrapped around this template and applied to a button, when this button is used it is not carrying the values for horizontal and vertical alignment. In the designer the allignments are showing and the button is in the correct place, but when i run the program the button appears to have horizontal alignment = left and vertical alignment = right. Any ideas?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about controltemplate