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
DataRecord Animation

Hi! I'm trying to animate with blinking incoming datarecord (from background thread).

I'm extending DataRecordCellArea style  in my control:


<Style x:Key="aniDataRecordPresenter" TargetType="{x:Type igDP:DataRecordCellArea}" BasedOn="{StaticResource {x:Type igDP:DataRecordCellArea}}">         <Style.Triggers>           <DataTrigger Binding="{Binding Path=Record.Tag, RelativeSource={RelativeSource Self}}" Value="true">             <DataTrigger.EnterActions>               <BeginStoryboard Name="BackgroundColorStoryboard">                 <Storyboard>                   <ColorAnimation DesiredFrameRate="5" Storyboard.TargetProperty="Background.Color" From="Black" To="Red" FillBehavior="Stop" RepeatBehavior="Forever" />                 </Storyboard>               </BeginStoryboard>               <BeginStoryboard Name="BackgroundAlternateColorStoryboard">                 <Storyboard>                   <ColorAnimation DesiredFrameRate="5" Storyboard.TargetProperty="BackgroundAlternate.Color" From="Black" To="Red" FillBehavior="Stop" RepeatBehavior="Forever" />                 </Storyboard>               </BeginStoryboard>             </DataTrigger.EnterActions>           </DataTrigger>           <DataTrigger Binding="{Binding Path=Record.Tag, RelativeSource={RelativeSource Self}}" Value="false">             <DataTrigger.EnterActions>               <StopStoryboard BeginStoryboardName="BackgroundColorStoryboard" />               <StopStoryboard BeginStoryboardName="BackgroundAlternateColorStoryboard" />             </DataTrigger.EnterActions>           </DataTrigger>         </Style.Triggers>       </Style> * This source code was highlighted with Source Code Highlighter .


Record.Tag receives true when record is added to the Item source of xamDataPresenter, and switches to false on RecordSeceltion event.

But when a wide range of records are blinking, application have performance issues.


May be there is another approach of record animation? Or any ways to improve animation performance ?


I'm setting DataRecordCellAreaStyle in my FieldLayoutSettings