<style targettype="{x:Type DataGridColumnHeader}" x:key="WrappedColumnHeaderStyle">
                <setter Property="VerticalContentAlignment" Value="Center"/>
                <setter Property="HorizontalContentAlignment" Value="Center"/>
                <setter Property="ContentTemplate">
                    <Setter.Value>
                        <datatemplate>
                            <textblock HorizontalAlignment="Stretch" TextAlignment="Center"  VerticalAlignment="Center" TextWrapping="WrapWithOverflow" Text="{Binding}"></TextBlock>                        
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
            </style>
        
Friday, August 14, 2015
          
        
        
      
datagridcolumnheader textwrapping and HorizontalAlignment style
datagridcolumnheader textwrapping and HorizontalAlignment style
Labels:
DataGrid WPF,
WPF
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment