Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
780
Content left alignment
posted

Hello,

I need align content text of XamDataGrid to left. But when I try set HorizontalContentAlignment="left", numerical columns continue on right.

Can I align all columns content to left using a style?

I have attached a little sample.

Thanks

icWpfApplication1.zip
Parents
  • 30945
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into your question and the reason for the HorizontalContentAlignment property to not align the text is that the Context of the CellValuePresenter is actually the editor that they are using. In order to align the text in the editors I can suggest creating styles for the editors, for example the XamNumericEditor and set the HorizontalContentAlignment property. I have modified the sample application that you have attached, in order to show how you can implement this approach.

     

    Please let me know if I can assist you with anything else.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    icWpfApplication1_1.zip
Reply Children