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>

 

posted @ 2014-01-23 19:26  quietwalk  阅读(673)  评论(0编辑  收藏  举报