Tabcontrol with PRISM

2 posts, 0 answers
  1. Bhanudas
    Bhanudas avatar
    8 posts
    Member since:
    Apr 2011

    Posted 05 Apr 2011 Link to this post

    I want to show two views as RadTabItem for RadTabControl by using PRISM. So I have gone through your link at

    there I studied code project. But my requirement is that in, Module1.cs file of Modules project, there is Initialize() method. If we look at following code location


    public void Initialize()
                this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () =>
                    return new FlandersViewModel();
                this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () =>
                    return new SimpsonsViewModel();


    Here viewModel is register with regionManager, But I want to register view with regions like following code

    this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () => container.Resolve<FlandersView>());                                                
    this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () => container.Resolve<SimpsonsView>());                                                                                  

    When I performed same changes in code and binded viewmodel with view, I am not able to see any header or view.

    So please let me know, can it possible to register view with regionManager when we work with Rad Tab Control ? If it possible then please provide me way to achieve this by using solution.

    Thanks in advance for your help!

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 09 Apr 2011 Link to this post

    Hello Bhanudas,

    Please have a look at the project I attached to this forum thread and let me know if it helps or if you need more info.

    Tina Stancheva
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top