public void Open(View view) { Browser.Document.Title = view.Title; if (this.view is Layout && view.LayoutType != null) { var layout = (Layout)this.view; var container = layout.FindLayout(view.LayoutType); container.AddView(view); } else { if (this.view != null) { body.Remove(this.view.Content); } var rootView = view.GetRootView(); body.Add(rootView.Content); this.view = rootView; } if (this.view is Layout) { var layout = (Layout)this.view; var sections = view.Sections; layout.LoadSections(sections); foreach (var section in sections.Values) { section.NotifyOnAddedToView(); } } }