Hello,
I have a Shell with 5 regions. (title, left menu, right menu, main menu and center region)
The center region should host multiple windows.
The windows should stay inside the center region.
I use MVVM with MS Prism.
The idea is to implement something like the windows gadgets.
I tried to resolve a window in the region, but it didn't work.
Nothing happens and I didn't get an error message
MainShell:
Window:
I have a Shell with 5 regions. (title, left menu, right menu, main menu and center region)
The center region should host multiple windows.
The windows should stay inside the center region.
I use MVVM with MS Prism.
The idea is to implement something like the windows gadgets.
I tried to resolve a window in the region, but it didn't work.
Nothing happens and I didn't get an error message
MainShell:
<ContentControl Regions:RegionManager.RegionName="HomeDashboard.CenterRegion"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch"/>
Window:
telerik:RadWindow x:Class="Ama.Modules.HomeDashboard.Views.CalendarView"</telerik:RadScheduler>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikScheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400" Height="300" Width="300">
<Grid x:Name="LayoutRoot">
<telerik:RadScheduler x:Name="scheduler" Grid.Row="1" DisplayEmptyGroup="True"
OpenModalDialogs="True"
ViewMode="Week" MonthViewScrollBarVisibility="Collapsed" >
</Grid>
</telerik:RadWindow>
Resolving:this.container.RegisterType<ICalendarViewModel, CalendarViewModel>();
this.container.RegisterType<ICalendarView, CalendarView>();
this.regionManager.RegisterViewWithRegion(HomeDashboardRegionNames.MiddleRegion,
() => this.container.Resolve<ICalendarViewModel>().View); Thank you!