Chanhong's Program Blog

  • 홈
  • 태그
  • 방명록

key 1

[WPF] 마우스,키보드 이벤트를 ViewModel 에서 감지하기

MVVM 을 초기에 사용할때, 마우스 이벤트 혹은 키보드 이벤트를 어떻게 ViewModel 에서 처리하는지 고민이 많았다. 그래서 그 방법을 공유하고자한다.   ListBox 에 대해서마우스 이벤트는 MouseBinding 으로키보드 이벤트는 KeyBinding 으로 가능하다. ListBoxItem 에게 부여하고 싶은 이벤트는 ListBox.ItemTemplate 을 이용하여 원하는 컨트롤에 주입도 가능하다...

WPF 2025.03.06
이전
1
다음
더보기
프로필사진

Chanhong's Program Blog

나만의 개발 블로그

  • 분류 전체보기 (34)
    • IDE (1)
      • Visual Studio (1)
    • WPF (21)
    • 통신 (0)
      • Serial (0)
      • HSMS (0)
      • Linux (0)
      • Mitsubishi PLC (0)
      • Simens PLC (0)
      • Socket (0)
      • OPCUA (0)
      • RestAPI (0)
    • 정보 공유 (3)
      • Nuget (3)
      • 프리웨어 (0)
    • SQL (3)
      • Postgre (2)

Tag

popup, entityframeworkcore, horizontalcontentalignment, 특수문자 깨짐, Postgre, binding error, continuewith, 한글 분리, TextBox, PostgreSQL, load view, windowchrome, verticalcontentalignment, busyindicator, shadow, windows.data error 4, pgAdmin4, WPF, cancellationtokensource, changepropertyaction,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바