This is a migrated thread and some comments may be shown as answers.

Floating Dockable RadPane misplaced dock indicators on multiple screens [WPF host edition]

0 Answers 84 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Bartosz
Top achievements
Rank 1
Bartosz asked on 09 Oct 2020, 02:27 PM

Hello!

I have similar, but slightly different scenario for misplaced dock indicators. Similar to https://www.telerik.com/forums/wrong-rootcompass-indicators-location, but in my case the host process is also WPF application that have ContentPresenter with content from another WPF process.

I've tried to implement IWindowInteropabilityAdapter, but it's properties are not being read at all.

Attaching Adapter

View = FrameworkElementAdapters.ContractToViewAdapter(_remoteProcess.RemotePlugin.Contract);
            WindowInteropabilityHelper.SetWindowInteropabilityAdapter(View,
                new WindowInteropabilityAdapter(App.Current.MainWindow));

//or App.Current.MainWindow.FindChildByType<ContentPresenter>()

 

Host Main Window xaml

<Window  >
    <AdornerDecorator>
        <DockPanel>
  
            <ContentPresenter Content="{Binding PluginService.SelectedPlugin.View}" />
        </DockPanel>
    </AdornerDecorator>
</Window>

 

I also tried to look at OnPreviewShowCompass(PreviewShowCompassEventArgs args) on child process RadDocking, because I can track main app to know that it was moved to the other screen, I'm able to have screen handle and screen dimensions, but I have no clue how to correct Compass placement even with all that information.

Is there anything I got missing, done wrong or could change to make it work as expected?

No answers yet. Maybe you can help?

Tags
Docking
Asked by
Bartosz
Top achievements
Rank 1
Share this question
or