Hi
I'm having problems binding the ToolWindow.IsSelected property to the same property in a ViewModel when using the MVVM pattern. The binding initially works, however when autohiding the toolwindow, this binding is detatched. I know this is because of the dynamically create and destroy mechanism of the container/docksite.
How can I work around this? I've tried creating a custom style with a setter for IsSelected, which results in no more luck than if i bind directly in the ToolWindow declaration. I've declared the local style inside inside docksite.Resources, but it is reverted to the original style for a toolwindow when docked again after autohide. I need to use different styles in the same window, so I can't overwrite the ToolWindowStyleKey.
I'm having problems binding the ToolWindow.IsSelected property to the same property in a ViewModel when using the MVVM pattern. The binding initially works, however when autohiding the toolwindow, this binding is detatched. I know this is because of the dynamically create and destroy mechanism of the container/docksite.
How can I work around this? I've tried creating a custom style with a setter for IsSelected, which results in no more luck than if i bind directly in the ToolWindow declaration. I've declared the local style inside inside docksite.Resources, but it is reverted to the original style for a toolwindow when docked again after autohide. I need to use different styles in the same window, so I can't overwrite the ToolWindowStyleKey.
Bjørnar Sundsbø