private TabClientProxy CreateProxy(object view) { var proxy = new TabClientProxy { Content = view, CommonData = RegionUtility.GetInterfaceFromView<ICommonData>(view) }; this.itemToTabClientMapping.Add(view, proxy); return proxy; }
private bool ContainsView(TabablzControl window, TabClientProxy proxy) { if (proxy == null || window == null) return false; return window.Items.OfType<TabClientProxy>().Any(tc => tc == proxy); }