This is a migrated thread and some comments may be shown as answers.

multiple windows in a region

2 Answers 60 Views
Window
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 08 Oct 2010, 03:30 PM
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:
            <ContentControl Regions:RegionManager.RegionName="HomeDashboard.CenterRegion"
                                VerticalContentAlignment="Stretch" 
                                HorizontalContentAlignment="Stretch"/>

Window:
telerik:RadWindow x:Class="Ama.Modules.HomeDashboard.Views.CalendarView"
    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"    >
               </telerik:RadScheduler>
    </Grid>
</telerik:RadWindow>

Resolving:
            this.container.RegisterType<ICalendarViewModelCalendarViewModel>();
            this.container.RegisterType<ICalendarViewCalendarView>();
            this.regionManager.RegisterViewWithRegion(HomeDashboardRegionNames.MiddleRegion,
            () => this.container.Resolve<ICalendarViewModel>().View); Thank you!

2 Answers, 1 is accepted

Sort by
0
Frank
Top achievements
Rank 1
answered on 08 Oct 2010, 04:09 PM
Hi realized that the docking controls can do what I want:
http://www.telerik.com/community/forums/wpf/docking/mvvm-prism.aspx
0
George
Telerik team
answered on 13 Oct 2010, 04:47 PM
Hi Frank,

I am glad that RadDocking control suits your needs. Please do not hesitate to contact us if you require any further information.
 

Greetings,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Frank
Top achievements
Rank 1
Answers by
Frank
Top achievements
Rank 1
George
Telerik team
Share this question
or