コード例 #1
0
ファイル: TagFactory.cs プロジェクト: zhuowp/SMS.Client
        private VectorTag CreateVectorTag(ITagModel tagModel)
        {
            VectorTag tag = new VectorTag();

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

            return(tag);
        }
コード例 #2
0
ファイル: VectorTag.cs プロジェクト: zhuowp/SMS.Client
        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
ファイル: VectorTag.cs プロジェクト: zhuowp/SMS.Client
        private static void OnArrowBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            VectorTag vectorTag = d as VectorTag;

            vectorTag.UpdateArrowShapeBrush();
        }