c# - Caliburn.micro and devexpress: insert tabs (dockpanel) from viewmodel when user clicks -
cheers all,
i'm searching use devexpress tool in visual c# project (vs2013). i'm using caliburn.micro , i've inserted caliburn.micro.devexpress reference. so, environment.
the problem: want create container, can open predefined tabs. can navigate in open tabs, close them , open others.
i'm in stuck integration of devexpress , caliburn. without caliburn , without mvvm pattern, it's easy. how can using viewmodel?
the result want example "simple mdi" in [the official caliburn.micro documentation1]. instead of button "open tab", i've menu in upper side and, depending on button clicked, want open relative dockpanel/tab.
now, in xaml file, container devexpress object, "documentgroup". goal add dynamically documentpanel(s), written above.
is clear problem? ideas solution?
update: in viewmodel have:
namespace **.viewmodels { class mainwindowviewmodel : conductor<iscreen>.collection.oneactive { public void addt() { debug.writeline("start"); activateitem(new ucimpiantiviewmodel()); debug.writeline("end"); } }
}
and in xaml have:
... <dxd:documentgroup x:name="items" itemheight="3*" selectedtabindex="0"> ...
i thought way good, still nothing.. new console.writeline working!
Comments
Post a Comment