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
165
XamDataGrid - fit cell content in narrow rows
posted

Hello:

I'm able to show grid lines with a narrow row Height, however the cells contents are clipped at the bottom, can you show how to fit the cell contents? I've included a sample that demonstrates the issue.

Cell Content cropped

http://imgur.com/28ot25Z

 <Style x:Key="XamRiskFieldStyle" TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="HorizontalContentAlignment" Value="Right"/>
<Setter Property="VerticalContentAlignment" Value="Top"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="BorderBrush" Value="{StaticResource CellBorderBrush}" />
<Setter Property="BorderThickness" Value="0,0,.5,.5" />
<Setter Property="Foreground" Value="White" />
<Setter Property="Background" Value="{StaticResource CellNormalBackground}" />
<Setter Property="Height" Value="15" />
<Setter Property="MaxHeight" Value="15" />
<Setter Property="MinHeight" Value="15" />
<Setter Property="Padding" Value="0,0,0,0"/>
<Setter Property="Margin" Value="0,0,0,0"/>
...

Thx

MyXamDataGrid.zip
Parents Reply Children
No Data