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

RadPane not displaying WebBrowser content while floating

10 Answers 232 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Spurk
Top achievements
Rank 1
Spurk asked on 10 Oct 2012, 02:56 PM
I've got a WebBrowser control nested inside a RadPane ... I've pointed it at http://loremipsumtext.com/ for some dummy content.  The content shows fine when pinned...but the RadPane is blank when simply floating.

Any suggestions?

10 Answers, 1 is accepted

Sort by
1
Vladi
Telerik team
answered on 15 Oct 2012, 11:50 AM
Hi Sheldon,

When a Pane is in floating state it is placed in chromeless transparent window, in order to show a WebBrowser control inside a Pane in floating state you will need to customize the GeneratedItemsFactory of the Docking control.

We created and attached a sample project for you showing how to place a WebBrowser in RadPane, give it a try.

Kind regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Spurk
Top achievements
Rank 1
answered on 15 Oct 2012, 03:21 PM
Greetings Vladi,

Ok, yes, in your test project it is working while undocked & floating... however, docked & unpinned doesn't work (see attachments).  It works when pinned, but when unpinned, the RadPane is blank.

Any assistance is greatly appreciated.
0
Vladi
Telerik team
answered on 18 Oct 2012, 07:37 AM
Hello Sheldon,

This is a known issue in WPF popups. As the autohide area in RadDocking is a WPF popup in order to show the WebBrowser control you will need to change the AllowsTransparency to false in the theme you are using. The easiest way of achieving this is by using Implicit Styles.

If you are using Implicit Styles, after merging the needed dictionaries you will need to open the Telerik.Windows.Controls.Docking.xaml file and change the AllowsTransparency property in all of the popups to false.

We created and attached a sample project for you to take a look at, note that by changing the AllowsTransparency property a black background behind the AutoHide area will appear, which cannot be covered unless the AllowsTransparency is set to true.

Hope this helps.

Regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dmitriy
Top achievements
Rank 1
answered on 13 Jan 2016, 08:43 AM
Hi, I have the same problem. When the pane is floating it's content is lost. But when the pane is part of DockingPanel to docking - content comes back and apllication work correctly.

May be this information will be useful:
content of each pane is UserControl 

We made one modification in pane's content view : Set UserControl property: x:ClassModifier="internal". 
This modification we implement in all UserControls, but some panes work correctly, some with content losing.
0
Vladi
Telerik team
answered on 14 Jan 2016, 08:07 AM
Hi Dmitriy,

Just to clarify, you have used the previously discussed approach of setting False value to the AllowsTransparency of the Popup placed inside the ControlTemplate with x:Key="AutoHideAreaTopTemplate". If this is true and you are still experiencing issues where the content of a floating RadPane is not showing, could you open a new support thread and in that thread describe your scenario in greater details. This will help us further investigate the exact scenario of your project.

Regards,
Vladi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dmitriy
Top achievements
Rank 1
answered on 14 Jan 2016, 09:52 AM
No, this way can't solve our problem, if I understand you correctly. Attache screen for confirmation.
But I find uncorrect behavior of inside/floating RadPanes:

1. If we have 1 or more RadPanes inside RadDockingPanel, content of floating RadPanes display correctly
2. If we have not RadPanes inside RadDockingPanel, content is dissapear

Attache screens for demonstration
0
Vladi
Telerik team
answered on 18 Jan 2016, 09:08 AM
Hello Dmitriy,

If we understand you correctly you are having trouble when placing content other than a RadPane instance directly in RadPaneGroup/RadSplitContainer. Please note that this is not supported in the current version of the RadDocking control. The control has a strict structure patter (RadDocking > RadSplitContainer > RadPaneGroup > RadPane > "any content") which should be followed in order for all of the built-in features of the control to work as expected. You can take a look at this article from our online documentation that goes through on how the layout of the control could be setup.

If we have missed something could you open a new support thread and in it send as a sample project that showcases the observed issue on your side. This would help us further investigate the discussed scenario.

Regards,
Vladi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Peter
Top achievements
Rank 1
answered on 20 Dec 2016, 02:43 PM
Easy to say "this is a known issue in WPF popups." The problem occurs in the Telerik component and is a time consuming to fix this and find out why the behavior is that way. why not making a property to solve this issue?
0
Nasko
Telerik team
answered on 21 Dec 2016, 02:16 PM
Hello Peter,

The observed issue could easily be reproduced and isolated out of RadDocking by simply placing the WebBrowser inside Popup - please, check the attached sample that demonstrates that.

As the issue is not related to RadDocking, but to the native WPF Popup we could not provide you with any other workaround except the one provided by Vladi to change the AllowTransparency property of the WPF Popups used by RadDocking internally to False.

We hope the provided information will be helpful for you.

Regards,
Nasko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ehsan
Top achievements
Rank 1
Iron
answered on 04 Jul 2023, 04:07 PM
Hi all,

I encountered the same issue, and none of the above solutions worked for me. However, I found a workaround by using the "SetAllowTransparency" trick in the App.xaml file, which resolved the problem. Here are the changes you need to make in App.xaml.cs.

Please note that the code snippet provided below should be added to the App.xaml.cs file:

// Add the following line of code inside the App.xaml.cs file
public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
        // SetAllowTransparency trick to fix the issue
            var window = new MainWindow();
            RadWindowInteropHelper.SetAllowTransparency(window, false);
            window.Show();
        
        base.OnStartup(e);
    }
}

Hope this helps!

Best regards,
Ehsan
Tags
Docking
Asked by
Spurk
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Spurk
Top achievements
Rank 1
Dmitriy
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Nasko
Telerik team
Ehsan
Top achievements
Rank 1
Iron
Share this question
or