コード例 #1
0
        public object GetViewModel()
        {
            ExtensionItemEventArgs e = new ExtensionItemEventArgs(ExtensionItemAction.GetViewModel);

            RaiseChanged(e);
            return(e.ViewModel);
        }
コード例 #2
0
        public TViewModel GetViewModel <TViewModel>() where TViewModel : class
        {
            ExtensionItemEventArgs e = new ExtensionItemEventArgs(ExtensionItemAction.GetViewModel);

            RaiseChanged(e);
            return(e.ViewModel as TViewModel);
        }
コード例 #3
0
 protected void RaiseChanged(ExtensionItemEventArgs e)
 {
     Changed?.Invoke(this, e);
 }