Posted 15 years ago
by Radu
![Avatar](https://secure.gravatar.com/avatar/ddc7999c5933ae3f7d3bc8d440ce351c.jpg?s=64&d=identicon&r=g)
Hi
I have the following situation:The HelpViewerControl has a DependencyProperty called DesiredSize. The problem is that the ControlSize does not seem to react on binding; if I set it directly, without binding, it works. Can you please advice? Inside my HelpViewerControl I get the default value for ControlSize (200,800) that means the binding works in that direction, but not reverse.
I have the following situation:
<docking:ToolWindowContainer docking:DockSite.ControlSize="{Binding ElementName=HelpViewer, Path=DesiredSize, Mode=TwoWay}">
<docking:ToolWindow x:Name="HelpPreview" Title="Help Preview" CanClose="False" HorizontalContentAlignment="Stretch">
<help:HelpViewerControl x:Name="HelpViewer"/>
</docking:ToolWindow>