AutoHide Problem for the docking application during pin and unpin the button of the toolwindow.

Docking/MDI for WPF Forum

Posted 12 years ago by keshav bansal
Version: 12.1.0562
Avatar

Hi,

I have two columns in my main grid of the startup application and the width of the first column is set to Auto.So first column have one docksite which have toolwindow1 and second column have another docksite which have another toolwindow2.so when i click on the pin button of the first toolwindow then toolwindow1 will be displayed as the tab and the space will be utilized by the toolwindow2 but when i hover the mouse on the tab of the toolwindow1 then its not displaying the popup or the window for the toolwindow1.

See below example and run it in your application and see the output according to  above specified steps.

Example:

<Window x:Class="DockingApplication.AutoSizeForDocksite"xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="AutoSizeForDocksite" Height="300" Width="300" xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking">

<Grid>

<Grid.ColumnDefinitions>

<ColumnDefinition Width="Auto"/>

<ColumnDefinition/>

</Grid.ColumnDefinitions>

<docking:DockSite Grid.Column="0"><docking:ToolWindowContainer><docking:ToolWindow Title="Toolwindow1"></docking:ToolWindow>

</docking:ToolWindowContainer>

</docking:DockSite>

<docking:DockSite Grid.Column="1">

<docking:ToolWindowContainer><docking:ToolWindow Title="Toolwindow2"></docking:ToolWindow>

</docking:ToolWindowContainer></docking:DockSite>

</Grid>

</Window>

Question1:

How to display the toolwindow when the user hover the mouse over the tab of the toolwindow which is formed when user click on the pin buttton and that docksite for that toolwindow is displayed in the column of auto width of the grid.As specified in above example.? 

Question2:

Is their any event handle for the click pin button and the unpin button  of the icon or button in the titlebar of teh toolwindow...?

Is their any mouse hover event handler for the tab of the toolwindow which is formed when user click on the pin buttton..?

[Modified 12 years ago]

Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Keshav,

Sorry but per your other forum post, I don't believe putting DockSite in an "Auto" grid column will work.  It needs to be told how much space it should use up.

Pinning and unpinning should fire the DockSite.WindowStateChanged event, which was added in a recent version.

There is no event for when a tool window slides in and out while in auto-hide state.


Actipro Software Support

The latest build of this product (v24.1.1) 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.