コード例 #1
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _areaCanvas  = GetTemplateChild("PART_Area") as Canvas;
            _lineTextTag = GetTemplateChild("PART_TextTag") as LineTextTag;

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

            SetTagBasePropertyBinding(tag);
            SetLineTextTagBasePropertyBindings(tag);
            SetTextTagPropertyBindings(tag);

            return(tag);
        }