care (1) 썸네일형 리스트형 WPF TextBox Caret 의 좌표 가져오기 WPF 의 TextBox 를 이용해서 현재 입력하고 있는 문자열에 자동완성 비스무리한 기능을 넣으려고 하다 보니 현재 Caret (현재 커서가 간 위치) 위치에 삽입할 수 있는 문자열을 표시할 팝업 창을 보여줘야 했다. 그러다 보니 그 팝업 창을 보여주기 위해서 Caret 의 좌표가 필요했다. public Point GetCaretPos(TextBox textBox) { int tRowIdx = textBox.GetLineIndexFromCharacterIndex(textBox.CaretIndex); int tLineFir = textBox.GetCharacterIndexFromLineIndex(tRowIdx); int tColIdx = textBox.CaretIndex - tLineFir; Format.. 이전 1 다음