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

RadDock and RadHtmlPlaceHolder

1 Answer 80 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Robbe Morris
Top achievements
Rank 1
Robbe Morris asked on 17 Jun 2009, 05:51 PM
I am seeing strange drawing and lock up issues when attempting to move a pane that contains a RadHtmlPlaceHolder loaded with a url.  The url loads fine works properly until you try to dock the tab elsewhere.  Here is some of the relevant code:

 

<radDock:RadDocking.DocumentHost>

 

 

<radDock:RadSplitContainer>

 

 

<radDock:RadPaneGroup x:Name="MainDocumentGroup">

 

 

<radDock:RadDocumentPane Title="Topic Areas" Header="Topic Areas">

 

 

<radDock:RadDocumentPane.Content>

 

 

<TextBlock Text="Stuff"/>

 

 

</radDock:RadDocumentPane.Content>

 

 

</radDock:RadDocumentPane>

 

 

</radDock:RadPaneGroup>

 

 

</radDock:RadSplitContainer>

 

 

</radDock:RadDocking.DocumentHost>

 


#region

ArticleListControl Article Selected

void ArticleListControl_ArticleSelected(object sender, DataEventArgs<Article> e)

{

if (e.Item == null) return;

var window = new WebPageViewer(http://www.google.com); //sets private variable in WebPageViewer.

window.Name = "WebPageViewer" + Guid.NewGuid().ToString();

var pane = new RadDocumentPane();

pane.Name = "DocumentPane" + Guid.NewGuid().ToString();

pane.Title = e.Item.Description;

pane.Header = e.Item.Description;

pane.Content = window;

 

this.MainDocumentGroup.AddItem(pane,DockPosition.Center);

 

}

#endregion


<

UserControl x:Class="MyNamespace.WebPageViewer"

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

 

xmlns:input="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input">

 

 

<telerik:RadHtmlPlaceholder x:Name="HtmlViewer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

 

</

UserControl>

 


1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 18 Jun 2009, 07:12 AM
Hi Robbe Morris,

RadHtmlPlacelohder is using the browser HTML engine to render itself, thus there maybe some flickering or parasite drawing when using with the docking control (or any other control that tries to update its location).

Unfortunately there is no workaround to this.

Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Docking
Asked by
Robbe Morris
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or