HI,
I am trying to use the PreviewSelectionChanged event on the radtabcontrol to capture a confirmation child window popup, can cancel that selection change in the tab control when I click cancel on the tab control, which should set the e.Handled in the PreviewSelectionChanged event to true.
But the problem is, the child window will not be shown until the previewselectionchanged event has finished executing.
eg.
Please advice...or give me an alternative to prevent selection of tab.
I am trying to use the PreviewSelectionChanged event on the radtabcontrol to capture a confirmation child window popup, can cancel that selection change in the tab control when I click cancel on the tab control, which should set the e.Handled in the PreviewSelectionChanged event to true.
But the problem is, the child window will not be shown until the previewselectionchanged event has finished executing.
eg.
CustomerTabs.PreviewSelectionChanged += (s, e) =>
{
if (e.OriginalSource == this.CustomerTabs)
{
var view = new CustomChildWindow();
view.Show();
view.Closed += (ss, ee) =>
{
e.Handled = true;
};
}
};
Please advice...or give me an alternative to prevent selection of tab.