개정판 55d4f382
issue #923
1.TextControl, ArrowTextControl에 SetFontFamily 함수를 만들고, 선택된 아이템에 대해서 TopMenu에 Font가 바뀌면 SetFontFamily을 호출하여 각 컨트롤마다 폰트를 바뀌게한다.
2.TextControl, ArrowTextControl을 생성할 때 SetFontFamily 함수를 호출하여 컨트롤에 Font를 Apply한다.
Change-Id: I242c6ba4db930307f06890a82ebf272c7dbf0bdc
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
1126 | 1126 |
{ |
1127 | 1127 |
//if ((InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).FontFamily == TextDecorations.Underline) |
1128 | 1128 |
//{ |
1129 |
(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).FontFamily = new FontFamily(comboFontFamily.Text); |
|
1130 |
(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).Base_TextBlock.FontFamily = new FontFamily(comboFontFamily.Text); |
|
1131 |
(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).Base_TextBox.FontFamily = new FontFamily(comboFontFamily.Text); |
|
1129 |
(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).SetFontFamily(new FontFamily(comboFontFamily.Text)); |
|
1130 |
//(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).Base_TextBlock.FontFamily = new FontFamily(comboFontFamily.Text); |
|
1131 |
//(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).Base_TextBox.FontFamily = new FontFamily(comboFontFamily.Text); |
|
1132 |
//(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).TextFamily = new FontFamily(comboFontFamily.Text); |
|
1132 | 1133 |
//} |
1133 | 1134 |
//else |
1134 | 1135 |
//{ |
... | ... | |
1138 | 1139 |
break; |
1139 | 1140 |
case ("ArrowTextControl"): |
1140 | 1141 |
{ |
1142 |
(InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).SetFontFamily(new FontFamily(comboFontFamily.Text)); |
|
1141 | 1143 |
//if ((InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).UnderLine == TextDecorations.Underline) |
1142 | 1144 |
//{ |
1143 | 1145 |
// (InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).UnderLine = null; |
내보내기 Unified diff