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
HorizontalContentAlignment to Left based on other field (column) value?

Hi, I need to make some colmuns aligment to left based on the value of other column (language code e.g fi-FI, en-US, ar-SA -> right alignment).

Can I do it with binding or do I have to do it in code behind. I have a lot of rows (thousands) so I can not loop them in code behind or grid gets really slow?

Is it posible to do some kind of fast value converter? I know I can create style like

    <Style TargetType="{x:Type igEditors:XamDateTimeEditor}" >

        <Setter Property="HorizontalAlignment" Value="Left" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />




Mauri Korhonen