Home Forums WPF controls Xceed DataGrid for WPF HorizontalContentAlignment for the ColumnManagerCell

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25869 |

    I want to set the Horizontal center for the ColumnManagerCell,the code is listed as following:
    <Style TargetType=”{x:Type xcdg:ColumnManagerCell}”>
    <Setter Property=”HorizontalContentAlignment” Value=”Center”/>
    <Setter Property=”HorizontalAlignment” Value=”Center”/>
    </Style>

    But it is not available, the cell header is still Horizontal left, can you tell me why

    Imported from legacy forums. Posted by Michael (had 2497 views)

    Xceed Support
    Member
    Post count: 5658

    To change the content alignment, the HorizontalContentAlignment/VerticalContentAlignment properties are what you want to use. That said, is it possible that your style is not defined in a scope where the ColumnManagerCells can access it?

    Imported from legacy forums. Posted by Jenny [Xceed] (had 218 views)

    User (Old forums)
    Member
    Post count: 23064

    i have tried this way for the DataCell and it is OK. So i am confused why it is not effective for ColumnManagerCell

    Imported from legacy forums. Posted by Michael (had 3455 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.