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
85
Problems with HorizontalContentAlignment
posted

I'm still learning to use the xamDataGrid, so maybe thats just a noob question, but i've tried the examples from this forum and none did work.

I can't set the Cellcontent alignment to right or center.

 

Here is what i have tried so far.

 

<Window.Resources>
        <Style TargetType="{x:Type igDP:CellValuePresenter}" >
            <Setter Property="HorizontalContentAlignment" Value="Right" />
        </Style>
    </Window.Resources>
    <DockPanel>
       
        <igDP:XamDataGrid Name="grid">
            <igDP:XamDataGrid.Resources>
                <Style TargetType="{x:Type igDP:CellValuePresenter}">
                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                </Style>
            </igDP:XamDataGrid.Resources>
        </igDP:XamDataGrid>
    </DockPanel>

 

it still looks this way:

 

 

My approach ist from this forum:

http://community.infragistics.com/forums/p/13669/70632.aspx