Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

RadRibbonView with a command defined INSIDE a ViewModel outside MODULE

$
0
0

Hi there.

I'm trying with no success at the moment, to implement a simple PRISM application who uses a RadRibbonView. The complexity resides basically in the command being defined as a member of a ViewModel that belongs to a MODULE of this PRISM application:

 

Prism application contains:

 

Shell, with a RadRibbonView containing a RadRibbonButton with a command called AddNewEmployee

EmployeeModule, with a RadGridView whose DataContext is EmployeeViewModel

EmployeeViewModel, defines an AddNewEmployee command.

So, AddNewEmployee command must be called on RadRibbonView, who knows nothing (pretty much like Jon Snow) of the model used in the EmployeeModule.

 

p.s.: modules are being loaded using RadRibbonTabs, and in the first tab, theres the button who calls the AddNewEmployee command.

Question is: this can be achieved? it is possible?

regards,

 

Gonzalo.


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>