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
1080
Template for FixedRecordLocation
posted

Hello, I need to change the color of the thin  line that splits a record when applied the FixedRecordLocation property of the xamdatagrid.

Where can I find the template to override its properties?

Thanks

VALERIO

  • 69686
    Verified Answer
    posted

    Hello Valerio,

    This line is a Border in the DataRecordPresenter element. Its style is bound to the RecordSeparatorStyle resource. In order to change any of its settings, you can use a sample style like the following :

    <Style x:Key="{ComponentResourceKey {x:Type igDP:XamDataGrid}, RecordSeparatorStyle}" TargetType="{x:Type Border}">

                <Setter Property="Background" Value="Red" />

                <Setter Property="HorizontalAlignment" Value="Stretch" />

                <Setter Property="VerticalAlignment" Value="Stretch" />

                <Setter Property="Height" Value="20" />

                <Setter Property="BorderThickness" Value="0,1,0,1" />

                <Setter Property="BorderBrush" Value="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, SummaryCommandButtonsBorder}}" />

            </Style>