private static void OnHightlightedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var edgeControl = sender as EdgeControl;
            var newValue    = (bool)e.NewValue;

            if (newValue)
            {
                var sb = new Storyboard();
                sb.Children.Add(Anima.StrokeThicknessAnimation(edgeControl.Size * BottomLineHighlightRatio, edgeControl.bottomLine, Anima.BlinkDuration));
                sb.Children.Add(Anima.StrokeThicknessAnimation(edgeControl.Size * TopLineHighlightRatio, edgeControl.topLine, Anima.BlinkDuration));
                sb.Begin();
            }
            else
            {
                var sb = new Storyboard();
                sb.Children.Add(Anima.StrokeThicknessAnimation(edgeControl.Size, edgeControl.bottomLine, Anima.BlinkDuration));
                sb.Children.Add(Anima.StrokeThicknessAnimation(edgeControl.Size, edgeControl.topLine, Anima.BlinkDuration));
                sb.Begin();
            }
        }
 private static Timeline StrokeThicknessAnima(double toValue, TimeSpan duration, DependencyObject target)
 {
     return(Anima.StrokeThicknessAnimation(toValue, target, new Duration(duration)));
 }