Messengerãç解ããããã«èªä½ãã¦ã¿ã(1)-(3) Messenger+Behaviorãç解ããããã«èªä½ãã¦ã¿ã(1)-(3) ã§ã¨ãããããã³ã¼ãããã¤ã³ãã«ã³ã¼ããè¨è¿°ããã«ãViewModelããViewãæä½ãã æ¹æ³ã«ã¤ãã¦ã¯ç解ããã¤ããã ããã©ã ããã§ããä»ã®åã®çµé¨ã¨ç¥èã§ã¯ãã³ã¼ãããã¤ã³ãã«æ¬¡ã®ãããªã³ã¼ããæ¸ãã¦ãã è¯ãããããªãããªã¼ã¨æã£ã¦ã¾ãã private void button1_Click(object sender, RoutedEventArgs e) { if (MessageBox.Show("å®è¡ãã¾ãã", "確èª", MessageBoxButton.YesNo) == MessageBoxResult.Yes) { vieewModel.Execute(); } } ãã主張ããã¨ã ãã³ã¼ãããã¤ã³ãã«View以å¤ã®ã
{{#tags}}- {{label}}
{{/tags}}