프로젝트

일반

사용자정보

개정판 e5bd2147

IDe5bd2147bc2e96d20d8d6594b40d487eba53b0cd
상위 301568ad
하위 cc37956c

임예철이(가) 9달 전에 추가함

Undo push method 수정
font size 수정

Change-Id: Ib02186683c56b454c0a50bdb8dddb8165111d5e3

차이점 보기:

MarkupToPDF/Controls/Text/TextControl.cs
87 87
            Base_Border = GetTemplateChild(PART_Border) as Border;
88 88
            Base_Canvas = GetTemplateChild(PART_Canvas) as Canvas;
89 89
            BaseTextbox_Caret = GetTemplateChild(PART_BaseTextbox_Caret) as Border;
90
            BaseTextbox_Caret.Height = this.Base_TextBox.FontSize;
90
            //BaseTextbox_Caret.Height = this.Base_TextBox.FontSize;
91 91
            this.Base_TextBox.Text = this.Text;
92 92
            this.Base_TextBox.CaretIndex = this.Base_TextBox.Text.Length;
93 93
            this.Base_TextBox.CaretBrush = new SolidColorBrush(Colors.Transparent);
94 94
            this.Base_TextBox.ApplyTemplate();
95 95
            MoveCustomCaret();
96
            if(this.Base_TextBox.FontSize > this.BaseTextbox_Caret.Height)
97
            {
98
                BaseTextbox_Caret.Height = this.Base_TextBox.FontSize;
99
            }
100
            //BaseTextbox_Caret.Height = Base_TextBox.ActualHeight - 5;
96 101

  
97 102
            this.Base_TextBox.SizeChanged += new SizeChangedEventHandler(Base_TextBox_SizeChanged);
98 103
            this.Base_TextBox.TextChanged += new TextChangedEventHandler(Base_TextBox_TextChanged);
......
134 139
            }
135 140

  
136 141
            if (!double.IsInfinity(caretLocation.Y)) {
137
                Canvas.SetTop(this.BaseTextbox_Caret, (LineSize.Top + caretLocation.Y));
142
                Canvas.SetTop(this.BaseTextbox_Caret, caretLocation.Y);
143
                //Canvas.SetTop(this.BaseTextbox_Caret, (LineSize.Top - caretLocation.Y));
138 144
            }
139 145
        }
140 146

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)