public static void RemoveChapter(TabViewItem item) { int index = IndexOfItem(item); Debug.Assert(index >= 0); CustomTabViewItems.RemoveAt(index); }
public static void AddChapter(CustomTabViewItem customTabViewItem) { Debug.Assert(IndexOfItem(customTabViewItem.TabItem) < 0); CustomTabViewItems.Add(customTabViewItem); }