protected override void TogglePinStatusExecuted(TabModel item) { var temp = ParentViewModel; foreach (var c in Children.ToList()) { Children.Remove(c); c.IsActive = true; if (Dock == Dock.Left) { temp.LeftDockItems.Add(c); } else if (Dock == Dock.Top) { temp.TopDockItems.Add(c); } else if (Dock == Dock.Right) { temp.RightDockItems.Add(c); } else if (Dock == Dock.Bottom) { temp.BottomDockItems.Add(c); } } }
protected virtual void CloseTabExecuted(TabModel item) { var parent = ParentViewModel; Children.Remove(item ?? SelectedItem); if (parent != null && parent.IsRafted && !parent.AllTabs.Any()) { parent.Host.Close(); } }
protected virtual void SelectItemExecuted(TabModel item) { SelectedItem = item; }
protected virtual void TogglePinStatusExecuted(TabModel item) { }
protected override void TogglePinStatusExecuted(TabModel item) { item.IsPinned = !item.IsPinned; }