Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1405
Switch between content panes in XamDockManager
posted

Hello all.
I have a WPF application with a XamDockManager on it and a XamRibbon.
The ContentPane headers of the XamDockManager are templated.
The two options from the XamRibbon will add in the XamDockManager two user controls (in the code are View and View2), each on a separate ContentPane.
Each of this UserControls contains a StackPanel.
In the View userConteolr (method A), the IsEnabled property of the StackPanel it's bounded to the property IsBusy from the UserControl view model (the class ViewModel).
In the View2 userConteolr (method B), the IsEnabled property of the Button in the StackPanel it's bounded to the property IsBusy from the UserControl view model (the class

ViewModel).
On each StackPanel there is also a checkbox and the IsChecked property of this checkbox is bounded to the same IsBusy property of the view model from the user control.
So that when the checkbox is true, the IsBusy property of the user control view model is true.
When the IsBusy property is true, an animation in the ContentPane header template will start.
For the method A the StackPanel will be disabled and for the method B only the button will be disabled.
The problem is that when the IsBusy is true (method A), I am not able to switch between the ContentPanes.
Can you please help me with this problem? If you need more details about it, please let me know and I will try to explain better.
I also attached a sample.

Thanks.
Nico

 

DockTest.zip
Parents Reply Children
No Data