public static readonly DependencyProperty AnimationStateProperty = DependencyProperty.Register("AnimationState", typeof(ST_Animation), typeof(MainAnimationBView), new PropertyMetadata(new ST_Animation(), AnimationStateChanged));
[Bindable(true)]
[Category("Appearance")]
public ST_Animation AnimationState
{
get { return (ST_Animation)GetValue(AnimationStateProperty); }
set
{
SetValue(AnimationStateProperty, value);
}
}
<Grid Panel.ZIndex="2" Margin="678,0,0,171" Width="120" Height="120" VerticalAlignment="Bottom" HorizontalAlignment="Left" RenderTransformOrigin="0.14,0.86">
<Grid.RenderTransform>
<RotateTransform Angle="{Binding AnimationState.ShortLifRotateState.InArmAngle, RelativeSource={RelativeSource AncestorType=UserControl}, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource InArmAngleConverter}}"></RotateTransform>
</Grid.RenderTransform>
<Image Panel.ZIndex="2" Margin="0,0,0,0" Style="{DynamicResource ShortLif1080ImageInArm}" Visibility="Visible">
</Image>
</Grid>