개정판 3c71b3a5
issue #000: merged master
Change-Id: Id7e766c44e158848f168c86ae220da1700fa36ad
MarkupToPDF/Controls/Text/ArrowTextControl.cs | ||
---|---|---|
64 | 64 |
Base_ArrowSubPath = GetTemplateChild(PART_ArrowSubPath) as Path; |
65 | 65 |
Base_TextBox = GetTemplateChild(PART_TextBox) as TextBox; |
66 | 66 |
BaseTextbox_Caret = GetTemplateChild(PART_BaseTextbox_Caret) as Border; |
67 |
|
|
67 |
Base_TextBox.Text = this.ArrowText; |
|
68 | 68 |
|
69 | 69 |
this.Base_TextBox.CaretIndex = this.Base_TextBox.Text.Length; |
70 | 70 |
this.Base_TextBox.CaretBrush = new SolidColorBrush(Colors.Transparent); |
... | ... | |
118 | 118 |
|
119 | 119 |
void Base_TextBox_SizeChanged(object sender, SizeChangedEventArgs e) |
120 | 120 |
{ |
121 |
if (Base_TextBox.Text.Contains("|OR||DZ|"))
|
|
121 |
if(this.IsEditingMode)
|
|
122 | 122 |
{ |
123 |
Base_TextBox.Text = this.ArrowText; |
|
124 |
} |
|
123 |
if (Base_TextBox.Text.Contains("|OR||DZ|")) |
|
124 |
{ |
|
125 |
Base_TextBox.Text = this.ArrowText; |
|
126 |
} |
|
125 | 127 |
|
126 |
this.ArrowText = Base_TextBox.Text; |
|
127 |
BoxWidth = e.NewSize.Width; |
|
128 |
BoxHeight = e.NewSize.Height; |
|
129 |
SetArrowTextPath(); |
|
128 |
this.ArrowText = Base_TextBox.Text; |
|
129 |
BoxWidth = e.NewSize.Width; |
|
130 |
BoxHeight = e.NewSize.Height; |
|
131 |
SetArrowTextPath(); |
|
132 |
} |
|
130 | 133 |
} |
131 | 134 |
|
132 | 135 |
#region Properties |
내보내기 Unified diff