Visibility and IsEnabled on ToolWindow do not work

Docking/MDI for WPF Forum

Posted 10 years ago by Michael Fooks - Software Engineer, Automated Positioning Systems
Version: 9.1.0505
Avatar
I would like to be able to hide or show the window based on a specific UI Behaviour.

Visibility="Hidden" and IsEnabled="False" do not seem to work on a ToolWindow. Is this a Bug?

For Example:
<controls:FwDockSite x:Name="CentreWorkspaceRegionPanel" Grid.Row="0" Background="Transparent">
<docking:Workspace>
<docking:TabbedMdiHost>
</docking:TabbedMdiHost>
</docking:Workspace>
<docking:DockSite.AutoHideRightContainers>
<docking:ToolWindowContainer x:Name="RightWorkspaceRegionPanel">
<controls:FwSearchWindow Visibility="Hidden" IsEnabled="False" Title="Test" CanAttach="False" CanAutoHide="True" CanBecomeDocument="False" CanClose="False" CanDockBottom="False" CanDockLeft="False" CanDockRight="True" CanDockTop="False" CanDrag="False" CanRaft="False" HasTitleBar="True">

</controls:FwSearchWindow>
</docking:ToolWindowContainer>
</docking:DockSite.AutoHideRightContainers>

</controls:FwDockSite>

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Michael,

If you want to hide a tool window then you should call its Close() method. You can Open() it back up when you want it visible again.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.