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

Tabcontrol with PRISM

1 Answer 100 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Bhanudas
Top achievements
Rank 1
Bhanudas asked on 05 Apr 2011, 10:23 AM

I want to show two views as RadTabItem for RadTabControl by using PRISM. So I have gone through your link at http://www.telerik.com/community/forums/silverlight/tabcontrol/tab-control-and-prism.aspx

there I studied 200673_tabcontrolandprism.zip 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  200673_tabcontrolandprism.zip solution.

Thanks in advance for your help!
Regards,
Bhanudas

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 09 Apr 2011, 01:00 PM
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.

Regards,
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
Tags
TabControl
Asked by
Bhanudas
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or