리소스1 [WPF][C#][Study] WPF 시작 2일차 1. XAML 이벤트 - 마우스 이벤트 - MouseUp : 마우스를 놓을 때 발생 - MouseDown : 마우스를 누를 때 발생 - 이벤트를 생성하는 2가지 방법 1) XAML에서 직접 호출 // 1) 위처럼 MouseUp의 델리게이트를 직접 연결해줌 2) Code-behind에서 델리게이트 추가 using System; using System.Windows; using System.Windows.Input; namespace WpfTutorialSamples.XAML { public partial class EventsSample : Window { public EventsSample() { InitializeComponent(); // 2) Code-behind에서 델리게이트에 직접 추가함 pnl.. 2023. 9. 15. 이전 1 다음