Hello,
I hab an xamDatagrid and I have CellPresenterValueStyle on a column which is a TimeSpan.
and the rsult looks like this
Why is the marked area not fully filled?
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="RightAligned" > <Setter Property="Background" Value="MintCream"/> <Setter Property="HorizontalAlignment" Value="Right"/> </Style>
Hi Matt ,
thanks for Your quick response and my delayed answer, but I was out of the office.
Yes Your suggestion is working fine for me.
Many Thanks again.
Michael
HI,
I am just following up on this post.
Please let me know if you need further assistance.
Sincerely,MattDeveloper Support Engineer
You can use HorizontalContentAlignment over HorizontalAlignment to get the desired result:
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="RightAligned" > <Setter Property="Background" Value="Red"/> <!--<Setter Property="HorizontalAlignment" Value="Right"/>--> <Setter Property="HorizontalContentAlignment" Value="Right"/> </Style
Sincerely, Matt Developer Support Engineer
Hello Matt,
yes You are right. as marked in the picture the MintCream is not set for the whole cell.
If You remove the right hand portion of the style then it will be filled.
Maybe its a bug
HI Mike,
If your issue is that the MintCream does not fill the entire cell, then I replicated your issue.
I will continue to investigate.