Custom RaftingHost

Docking/MDI for WPF Forum

Posted 15 years ago by Cameron MacFarland - Senior Software Engineer, Orelogy Geotechnical
Version: 9.1.0507
Simple question, is there a way to customize the RaftingHost?

I need to have all windows that are separate from the main window to have an element at the top level. But I don't want to add the element to the ToolWindow because I don't want the element to show when the ToolWindow is docked inside the main window.

Overriding the RaftingHost seems like the best solution but there's no examples and I'm not sure it's possible.

So is there a way?


Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Cameron,

Our RaftingHost control has a fairly simple template. There isn't a way to override the control right now but you could put an implicit Style with a customized template for it in your app's Resources. Here's the default template:
    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
            Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
        <ContentPresenter Content="{TemplateBinding Content}"
                          ContentTemplate="{TemplateBinding ContentTemplate}"
                          ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                          SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />

Actipro Software Support

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