Live preview in DocumentWindow's ToolTip

Docking/MDI for WPF Forum

Posted 15 years ago by Jeremy ALLES - Grenoble, France
Version: 4.5.0480
Avatar
Hi,

I'm trying to have a live preview of the content of a DocumentWindow in its Tooltip. I did some tests, and here is the example I'm using:

<docking:Workspace>
<docking:TabbedMdiHost>
<docking:TabbedMdiContainer>
<docking:DocumentWindow Title="Document1.txt"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
<docking:DockingWindow.ToolTip>
<Grid Width="400" Height="200">
<Rectangle>
<Rectangle.Fill>
<VisualBrush Visual="{Binding Content}"/>
</Rectangle.Fill>
</Rectangle>
</Grid>
</docking:DockingWindow.ToolTip>
<TextBox Text="Move other tool windows around the 'fixed' tool window." />
</docking:DocumentWindow>
</docking:TabbedMdiContainer>
</docking:TabbedMdiHost>
</docking:Workspace>

This sample works fine when the DocumentWindow is the active one, but otherwise, the visual content is not scaled properly. Do you have any idea how I can fix this problem ?


Regards,
Jeremy

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Jeremy,

I think the problem may be that only the selected content is being displayed at any given time. So it may be possible that the only thing we could do would be to recreate the tooltip visual on-demand somehow when the tooltip is readied for display.

If you'd like to throw around some ideas on that, maybe email our support staff and we can discuss it in some more detail.


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.