I have MainWindow and User Controls inside each Tab. When I am switching too fast between tabs or sometimes even without switching I get null in main;
var main = UIHelper.FindVisualParent<MainWindow>(this);
Why does this happens do you know? Let's say it shows error such as main is null once in 7-10 tries. I am using it in User Controls to get access to controls of MainWindow. Thanks in advance.