multiple windows in a region

3 posts, 0 answers
  1. Frank
    Frank avatar
    7 posts
    Member since:
    Aug 2010

    Posted 08 Oct 2010 Link to this post

    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. Frank
    Frank avatar
    7 posts
    Member since:
    Aug 2010

    Posted 08 Oct 2010 Link to this post

    Hi realized that the docking controls can do what I want:
    http://www.telerik.com/community/forums/wpf/docking/mvvm-prism.aspx
  3. DevCraft banner
  4. George
    Admin
    George avatar
    1332 posts

    Posted 13 Oct 2010 Link to this post

    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
Back to Top