dxg:TreeListView.RowDecorationTemplate

    <dxg:TreeListView.RowDecorationTemplate>
                  
                    <ControlTemplate TargetType="ContentControl">
                       
                        <Border  x:Name="border" 
                                 Background="{Binding Path=Row.EncounterId, 
                            Converter={StaticResource historyMedicationOrderBackgroundConverter}}"
                                 >

                            <ContentPresenter  Name="content" 
                                               Content="{Binding}" 
                                               ContentTemplate="{Binding View.DefaultDataRowTemplate}"
                                               >
                            </ContentPresenter>

                        </Border >

                        <ControlTemplate.Triggers>
                            <DataTrigger Binding="{Binding Path=IsFocused}" Value="True">
                                <Setter Property="Background" Value="Transparent" TargetName="border"/>
                            </DataTrigger>
                        </ControlTemplate.Triggers>
                        
                    </ControlTemplate>
                </dxg:TreeListView.RowDecorationTemplate>

 

你可能感兴趣的:(ListView)