Update RunningBlock.cs

This commit is contained in:
NaBian 2019-08-04 12:28:58 +08:00
parent 0f6d254db8
commit 41f2f039ce

View File

@ -70,7 +70,7 @@ namespace HandyControl.Controls
_elementPanel.Width = _elementPanel.DesiredSize.Width;
_elementPanel.Height = _elementPanel.DesiredSize.Height;
var animation = new DoubleAnimation(-_elementContent.ActualWidth, ActualWidth, Duration)
var animation = new DoubleAnimation(-_elementPanel.Width, ActualWidth, Duration)
{
RepeatBehavior = RepeatBehavior.Forever
};