프로젝트

일반

사용자정보

개정판 414aaec1

ID414aaec14eb797577fd75d0606e24236450bc4e3
상위 7a5210f1
하위 90db87f6

송근호이(가) 5년 이상 전에 추가함

issue #000 TextControl 에 SizeChanged 로 Text Property에 입력하고 있어서, Size가 변하지 않으면 Text Property에 반영이 안되었다.

Change-Id: Id4762da8949f9c26408c9a19f3e9ea4ac646d9b6

차이점 보기:

MarkupToPDF/Controls/Text/TextControl.cs
91 91
            this.Base_TextBlock.SizeChanged += new SizeChangedEventHandler(Base_TextBlock_SizeChanged);
92 92
            this.Base_TextBox.GotFocus += new RoutedEventHandler(TextControl_GotFocus);
93 93
            this.Base_TextBox.LostFocus += new RoutedEventHandler(TextControl_LostFocus);
94
           
94
            this.Base_TextBox.TextChanged += Base_TextBox_TextChanged;
95

  
95 96
            DrawingCloud();
96 97
            SetText();
97 98
        }
98 99

  
100
        private void Base_TextBox_TextChanged(object sender, TextChangedEventArgs e)
101
        {
102
            if (Base_TextBox.Text.Contains("|OR||DZ|")) {
103
                Base_TextBox.Text = this.Text;
104
            }
105

  
106
            this.Text = Base_TextBox.Text;
107
            DrawingCloud();
108
        }
109

  
99 110
        public override void ApplyOverViewData()
100 111
        {
101 112
            this.OverViewPathData = this.PathData;
......
106 117

  
107 118
        void Base_TextBlock_SizeChanged(object sender, SizeChangedEventArgs e)
108 119
        {
109
            
110

  
111
            this.Text = Base_TextBox.Text;
112

  
113 120
            BoxWidth = e.NewSize.Width;
114 121
            BoxHeight = e.NewSize.Height;
115

  
116
            this.ApplyTemplate();
117

  
118 122
            DrawingCloud();
119 123
        }
120 124

  
121
        //void TextControl_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
122
        //{
123
        //    this.Focus();
124
        //}
125

  
126 125
        void Base_TextBox_SizeChanged(object sender, SizeChangedEventArgs e)
127 126
        {
128
            if (Base_TextBox.Text.Contains("|OR||DZ|"))
129
            {
130
                Base_TextBox.Text = this.Text;
131
            }
132

  
133
            this.Text = Base_TextBox.Text;
127
           
134 128
            BoxWidth = e.NewSize.Width;
135 129
            BoxHeight = e.NewSize.Height;
136
            this.ApplyTemplate();
137 130
            DrawingCloud();
138 131
        }
139 132

  

내보내기 Unified diff

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