wpf - MEF and ICommand -


i have problems commands. example. have workspace menu. in menu importing imenuitem whitch contain icommand. make work have create commandbinding in workspace.

now, import datatemplate i'm exporting resourcedictionary , merging app.resources, it's not @ all, it's not applicable databindings.

i want use commandmanager don't know how to, can't find example.

also want ask there way export not class, export values existing class, not mean metadata. cause each icommand, imenuitem etc have declare new class

[export(typeof(routeduicommand)] class mynewcommand : routeduicommand {      public mynewcommand()     {         //...     } } 


Comments