TextAlignmentProperty of the Entry control in windows phone

I'm trying to center align the placeholder (hint) for an Entry-style on Windows Phone.
I'm using a custom renderer and i'm doing something like this in the renderer:

var hintStyle = new Style(typeof(ContentControl));
hintStyle.Setters.Add(new Setter(TextBox.TextAlignmentProperty, System.Windows.TextAlignment.Center));
((PhoneTextBox)Control.Children[0]).HintStyle = hintStyle;

I have no problem affecting other properties in my custom renderer, but just not centering the hint/placeholder,

Any ideas?

Sign In or Register to comment.