예제 #1
0
        private VectorTag CreateVectorTag(ITagModel tagModel)
        {
            VectorTag tag = new VectorTag();

            SetTagBasePropertyBinding(tag);
            SetLineTextTagBasePropertyBindings(tag);
            SetVectorTagPropertyBindings(tag);

            return(tag);
        }
예제 #2
0
        private static void OnAreaPointsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            VectorTag vectorTag = d as VectorTag;

            vectorTag.UpdateTagLocationInScreen();
            if (e.OldValue is ObservableCollection <Point> oldCollection)
            {
                oldCollection.CollectionChanged -= vectorTag.AreaPointCollection_CollectionChanged;
            }

            if (e.NewValue is ObservableCollection <Point> newCollection)
            {
                newCollection.CollectionChanged += vectorTag.AreaPointCollection_CollectionChanged;
            }
        }
예제 #3
0
        private static void OnArrowBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            VectorTag vectorTag = d as VectorTag;

            vectorTag.UpdateArrowShapeBrush();
        }