프로젝트

일반

사용자정보

개정판 e17af42b

IDe17af42b5716bd807ce9e45327b8f36afe35bbb9
상위 d4b0c723
하위 ac77b778, f633b10b

KangIngu 이(가) 6년 이상 전에 추가함

ArrowTextControl UnderLine추가
ArrowTextControl 속성 이벤트 변경 추가

차이점 보기:

KCOM/Views/MainMenu.xaml.cs
3068 3068
                        }
3069 3069
                        else if ((control as ArrowTextControl) != null)
3070 3070
                        {
3071
                            if (this.ParentOfType<MainWindow>().dzTopMenu.btnItalic.IsChecked == true)
3071
                            //if (this.ParentOfType<MainWindow>().dzTopMenu.btnItalic.IsChecked == true)
3072
                            //{
3073
                            //    (control as ArrowTextControl).TextStyle = FontStyles.Italic;
3074
                            //}
3075
                            //if (this.ParentOfType<MainWindow>().dzTopMenu.btnBold.IsChecked == true)
3076
                            //{
3077
                            //    (control as ArrowTextControl).TextWeight = FontWeights.Bold;
3078
                            //}
3079
                            //if (this.ParentOfType<MainWindow>().dzTopMenu.btnUnderLine.IsChecked == true)
3080
                            //{
3081
                            //    (control as ArrowTextControl).UnderLine = TextDecorations.Underline;
3082
                            //}
3083
                            if ((control as ArrowTextControl).TextStyle == FontStyles.Italic)
3072 3084
                            {
3073
                                (control as ArrowTextControl).TextStyle = FontStyles.Italic;
3085
                                ViewerDataModel.Instance.checkTextStyle = true;
3086
                            }
3087
                            else
3088
                            {
3089
                                ViewerDataModel.Instance.checkTextStyle = false;
3090
                            }
3091

  
3092
                            if ((control as ArrowTextControl).TextStyle == FontStyles.Italic)
3093
                            {
3094
                                ViewerDataModel.Instance.checkTextStyle = true;
3074 3095
                            }
3075
                            if (this.ParentOfType<MainWindow>().dzTopMenu.btnBold.IsChecked == true)
3096
                            else
3076 3097
                            {
3077
                                (control as ArrowTextControl).TextWeight = FontWeights.Bold;
3098
                                ViewerDataModel.Instance.checkTextStyle = false;
3078 3099
                            }
3079
                            if (this.ParentOfType<MainWindow>().dzTopMenu.btnUnderLine.IsChecked == true)
3100
                            if ((control as ArrowTextControl).TextWeight == FontWeights.Bold)
3080 3101
                            {
3081
                                (control as ArrowTextControl).UnderLine = TextDecorations.Underline;
3102
                                ViewerDataModel.Instance.checkTextWeight = true;
3103
                            }
3104
                            else
3105
                            {
3106
                                ViewerDataModel.Instance.checkTextWeight = false;
3107
                            }
3108
                            if ((control as ArrowTextControl).UnderLine == TextDecorations.Underline)
3109
                            {
3110
                                ViewerDataModel.Instance.checkUnderLine = true;
3111
                            }
3112
                            else
3113
                            {
3114
                                ViewerDataModel.Instance.checkUnderLine = false;
3082 3115
                            }
3083 3116
                            ViewerDataModel.Instance.checkHighlight = (control as ArrowTextControl).isHighLight;
3084 3117
                            ViewerDataModel.Instance.TextSize = (control as ArrowTextControl).TextSize;

내보내기 Unified diff

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