[WPF] Window Loaded Event in MVVM MVVM Model로 간단하게 코드를 작성하다 보면 다음과 같이 Behind 코드에서 ViewModel을 가져오는 경우가 있다. this.DataContext = new MinsuViewModel(); 자, 오늘은 이놈이 말썽을 일으키셨다!! 1: public partial class MainWindow : Window 2: { 3: public MainWindow() 4: { 5: InitializeComponent(); 6: this.DataContext = new MinsuViewModel(); 7: } 8: } 요놈이 무슨 문제가 있을까..... 곰.....곰......곰........문.......문......... 곰이 꺼꾸로 자뻐지도록 생각을 해봤다. 왜!? 1: 2: 3: 4: 5: 요 인.. 더보기 이전 1 ··· 6 7 8 9 10 11 12 ··· 23 다음