Hi, i knew its silly to ask such kind of questions. But even though i should ask to resolve my problem.
I am using a XamNumericEdiotr for a field, and for this i am having HorizontalContentAlginment and also HorizontalAlignment to be Left. But when i keep the cursor on the text field the content is moving to center. and once i complete editing and click on Tab, then the content is coming to Left. can anyone help on this. Why is this happening like this?
Hi Saravanan,
When you enter edit mode in the editor, do you see some underscores in front of the value? These underscores are what are pushing the value to the center of the editor. They show you how many more digits you can add to the value. The only way to remove the underscores are to set the PromptChar property to an empty string.
<Style TargetType="{x:Type igEditors:XamNumericEditor}"> <Setter Property="PromptChar" Value=""/> <Setter Property="HorizontalContentAlignment" Value="Left"/> </Style>
This should help keep the text aligned to the left.
Let me know if you have any further questions on this matter.
Hi Rob
Your solution solved the issue
Thanks