c# - WPF - how to call mainwindow tabitems from inside a control -


I different Tibis (editing, for additional and more) with Tabroft custom control I have main window I am I want to be able to address other tabs within the control, so when, for example, I click submit on some forms, it activates a specific tab other.

I tried

BasVando N = new baswondo (); N.SearchTab.Visibility = System.Windows.Visibility.Hidden;

Still does not move this clearly

Any thoughts?

I will consider reusing my architecture here.

Can Your Custom Controls (UserControls?) Be within an Option tab? Your main window can then subscribe to rooted events (at the main window level) and the application navigation can be handled.

It is very clear from the design standpoint, because the user controls do not need to know about other controls, they say, "I kill this button", and the main window decides That means the event has to show the second window. If you ever change your tab, then you will not be able to break everything because it lowers the pairing between your tabs.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -