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
Style the selected row
posted

I want to do something like:

 

            <Style x:Key="SelectedRow" TargetType="{x:Type igDP:DataRecordPresenter}">

                <Setter Property="Margin" Value="0,1,0,10"/>

                <Setter Property="Template">

                    <Setter.Value>

                        <ControlTemplate TargetType="{x:Type igDP:DataRecordPresenter}">

                            <StackPanel>

                                <!--<ContentPresenter x:Name="PART_RecordContentSite" Content="{TemplateBinding DataContext}" ContentTemplate="{TemplateBinding RecordContentAreaTemplate}" MinHeight="20" MinWidth="50" />-->

                                <Label Content="Triggered"/>

                            </StackPanel>

                          </ControlTemplate>

                    </Setter.Value>

                </Setter>

                <Style.Triggers>

                    <EventTrigger RoutedEvent="igDP:XamDataGrid.SelectedItemsChanged">

 

                    </EventTrigger>

                </Style.Triggers>

            </Style>

 

But i'm not understanding how to trigger on selectedItemsChanged.

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    Have you tried the DataRecordCellArea's Selected and Deselected events. I am not sure if the SelectedItemChanged event would be an appropriate one for this.

Children
No Data