Hi Mody Buchbinder,
If you want to disable the whole dockpane, you can follow like -
1. In your xaml (dockpane xaml)
Add boolean binding, at the first xml tag after width height like => d:DesignHeight="300" d:DesignWidth="300" IsEnabled="{Binding Path=DockEnabled}"
2. In your view model c# class, add the property you bind in your xaml,
private bool dockEnabled;
public bool DockEnabled
{
get { return dockEnabled; }
set
{
SetProperty(ref dockEnabled, value, () => DockEnabled);
}
}
3. At constructor, assign it to true first
And subsequently if you want to disable the dockpane, assign it false.
If you need to call that variable in the QueuedTask block , call in that way
Dispatcher.CurrentDispatcher.Invoke(() =>
{
this.DockEnabled = false;
});
Let me know how's go, currently I am using 2.6.2 and play like this , it is working for me.