Hi,
I have a problem to define an animated texture to my RadDiagramConnection. If i define the texture inside style on my window, that's work but if i define texture in Resources, texture doesn't load.
This is my files :
Controls
|_ Entity
| |_ Resources.xaml
|_ View
| |_ Editor.xaml
|_ img
|_ water.gif
This is my code who's working in Editor.xaml :
<telerik:RadDiagram x:Name="diagram2" Grid.Column="1" Grid.Row="1"> <controls1:UniqEntity x:Name="container01" Position="150,150" /> <telerik:RadDiagramContainerShape x:Name="container02" Position="500,150" /> <telerik:RadDiagramConnection x:Name="connection01" Source="{Binding ElementName=container01}" Target="{Binding ElementName=container02}" Loaded="Connection01_OnLoaded" StrokeThickness="20"> <Setter Property="Stroke"> <Setter.Value> <VisualBrush> <VisualBrush.Visual> <Image gif:ImageBehavior.AnimatedSource="../img/water.gif" /> </VisualBrush.Visual> </VisualBrush> </Setter.Value> </Setter> </telerik:RadDiagramConnection></telerik:RadDiagram>
but if i define the style in Resources.xaml dictionnaries, the texture doesn't load :
<Style x:Key="RadDiagramConnectionStyle" TargetType="telerik:RadDiagramConnection" /> <Style BasedOn="{StaticResource RadDiagramConnectionStyle}" TargetType="telerik:RadDiagramConnection"> <Setter Property="StrokeThickness" Value="10" /> <Setter Property="Stroke"> <Setter.Value> <VisualBrush> <VisualBrush.Visual> <Image gif:ImageBehavior.AnimatedSource="../../img/water.gif" /> </VisualBrush.Visual> </VisualBrush> </Setter.Value></Setter>...
Can you help me please ?
Thanks !
Nicolas
