I want to create a region with dynamic views (several views in one region). The contents of the region must be changed using the ComboBox selection event (comobox elements are view instances). I want the change in ComboBox to change the view in the region to the selected view element.
My question is: what is the difference between:
MyView view= new MyView();
IRegion region = new Region();
region.Name="MyRegion";
regionManager.Regions.Add(region);
region.Add(view);
region.Activate(view);
To:
regionManager.RegisterViewWithRegion("MyRegion",type(MyView));
?
What is the best way to use dynamic areas?
source
share