private void MainTap_TabAdding(object sender, TabControlTabAddingEventArgs e) { var View = new AddSourcesView(); e.Item = new DXTabItem() { Header = "Custom Item", Content = View.Content }; }
private void AddSourcesViewBut_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e) { var View = new AddSourcesView(); addTabItem(View, e.Item.Content.ToString()); }