static void OnVisiblePathLinePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CustomSegmentPath customPath = d as CustomSegmentPath;

            if (customPath == null)
            {
                return;
            }

            if (e.NewValue == e.OldValue || e.NewValue == null)
            {
                return;
            }

            customPath.Update();
        }
        static void OnPathPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CustomSegmentPath customPath = d as CustomSegmentPath;

            if (customPath == null)
            {
                return;
            }

            if (e.NewValue == e.OldValue || e.NewValue == null)
            {
                return;
            }

            customPath.Path.Transform = null;

            //Decova.Wpf.UpdateSize();
            customPath.Update();
        }