public Crumb(string title, ICrumbViewContent content) { this.Title = title; this.Content = content; //this.Description = "Unidade"; }
public int AddCrumb(string title, ICrumbViewContent content) { if (title == null) { throw new ArgumentNullException("Title"); } if (content == null) { throw new ArgumentNullException("Content"); } ICrumb crumb = new Crumb(title, content); return(AddCrumb(crumb)); }
private void AddViewToRegion(ICrumbViewContent content) { IRegion region = this._regionManager.Regions[RegionNames.MainRegion]; foreach (var v in region.Views) { region.Deactivate(v); } if (!region.Views.Contains(content.View)) { content.CloseViewRequested += delegate(object sender, EventArgs eventArgs) { region.Deactivate(content.View); region.Remove(content.View); this.RemoveCrumb(); }; region.Add(content.View); } region.Activate(content.View); }