Custom RaftingHost

Docking/MDI for WPF Forum

Posted 10 years ago by Cameron MacFarland - Senior Software Engineer, Orelogy Geotechnical
Version: 9.1.0507
Avatar
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?

Thanks

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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:
<AdornerDecorator>
    <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}"
                          ClipToBounds="True" 
                          SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
    </Border>
</AdornerDecorator>


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.