I try to open a module resolved by a special directory
return new DirectoryModuleCatalog() { ModulePath = @"..\..\modules" };
and want to show it in a new Window
.
How can I do that?
My approach so far:
public void OpenInNewWindow(string regionName)
{
var cc = new ContentControl();
_regionManager.RegisterViewWithRegion(regionName, () => cc);
new Window
{
Content = cc
}.Show();
}
But that seems not to work. My Window
is empty.