ToolWindowContainerTabContextContentTemplate does not seem to work anymore

Docking/MDI for WPF Forum

The latest build of this product (v25.1.2) was released 16 days ago, which was before this thread was created.
Posted 5 days ago by Daniel Constantin - ModuleWorks GmbH
Version: 25.1.2
Platform: .NET 4.8
Environment: Windows 11 (64-bit)
Avatar

Hi!

For my tool windows I have set the TabText="", Title with some title and I have set up the 

    <ribbon:ToolWindow.AutoHideTabContextContentTemplate>
        <DataTemplate>
            <TextBlock Text="Test Title 1"/>
        </DataTemplate>
    </ribbon:ToolWindow.AutoHideTabContextContentTemplate>
    <ribbon:ToolWindow.ToolWindowContainerTabContextContentTemplate>
        <DataTemplate>
            <TextBlock Text="Test Title 2"/>
        </DataTemplate>
    </ribbon:ToolWindow.ToolWindowContainerTabContextContentTemplate>

Now when I make the list of tool windows floating I do not see the ToolWindowContainerTabContextContentTemplate for them. It looks like an empty control.

Kind regards,

Daniel

Comments (6)

Posted 4 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

AutoHideTabContextContentTemplate only shows when the tool window is auto-hidden and ToolWindowContainerTabContextContentTemplate only shows when the tool window is "attached" to another tool window and appears with a tab.  A floating tool window will not have a tab with default settings, so that's why ToolWindowContainerTabContextContentTemplate wouldn't show there. 

ToolWindowContainerTitleBarContextContentTemplate is what would show in a title bar, such as when a single tool window is floating.

We provide numerous options for context content display to allow for flexibility.  Our CustomContextContent QuickStart shows them all off.


Actipro Software Support

Posted 4 days ago by Daniel Constantin - ModuleWorks GmbH
Avatar

Hi!

I have a group of tool windows floating together but the bottom title bars looks like empty controls. If I have only one tool window floating those controls will not appear. Only when there 2 or more.

This happens only for group of floating tool windows. When they are docked I can see the custom ToolWindowContainerTabContextContentTemplate for each of them.

Kind regards,

Daniel

[Modified 4 days ago]

Answer - Posted 4 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Daniel,

The scenario you are describing where the controls appear in some scenarios and not in other scenarios sounds like an issue with looking up resources.  Could you please create a simple sample project and send to our support email?  If so, please reference this forum post and be sure to remove any bin/obj folders from the project before zipping so the attachment is not blocked.

Alternatively, could you tell us how to reproduce what you are seeing with our Custom Context Content QuickStart that is in our Sample Browser?  In all the scenarios we've been testing, the custom content appears as expected.


Actipro Software Support

Posted 3 days ago by Daniel Constantin - ModuleWorks GmbH
Avatar

Hi!

For one problem related to hovering on top of hidden tool windows I sent an email.

For this problem mentioned here it seems that I have my styles declared in the main control and somehow for the floating windows it will not find those styles.

Kind regards,
Daniel

Answer - Posted 2 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Daniel,

Thank you for the sample project.  You're probably in high DPI here (I can reproduce the issue in that scenario with your project) and your project was missing an app.manifest like the one we have in our Sample Browser that tells the application to support DPI Awareness.  If I copy our app.manifest over and use it in your application project, auto-hide popups with the DockSite.UseHostedPopups="False" option set display as expected.


Actipro Software Support

Posted 2 days ago by Daniel Constantin - ModuleWorks GmbH
Avatar

Thanks for the reply!

Kind regards,

Daniel

Add Comment

Please log in to a validated account to post comments.