private VectorTag CreateVectorTag(ITagModel tagModel) { VectorTag tag = new VectorTag(); SetTagBasePropertyBinding(tag); SetLineTextTagBasePropertyBindings(tag); SetVectorTagPropertyBindings(tag); return(tag); }
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; } }
private static void OnArrowBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { VectorTag vectorTag = d as VectorTag; vectorTag.UpdateArrowShapeBrush(); }