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

Is there a RadControls control for hosting HTML page in my in-browser Silverlight application?

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Timo
Top achievements
Rank 1
Timo asked on 16 Oct 2012, 10:00 AM
Hello Telerik team,

I am implementing a Silverlight 5 application to a website and one of the requirements is that I need to show some external Html pages embedded as part of my Silverlight UI. WebBrowser control would be fine otherwise, but I can't implement my app as out-of-browser application or configure it as trusted in-browser application.

Is there any RadControl for Silverlight control that could host a HTML page, let's say e.g. www.telerik.com, so that the user could also browse the html page? See my example code below where the 'SomeControl' would be the control that can host HTML page. Is there such control in RadControls for Silverlight product? Or do you have any other ideas how to do the trick?

<navigation:Page x:Class="MyPage"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="MyPage">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Button>Button1</Button>
            <Button>Button2</Button>
            <Button>Button3</Button>
        </StackPanel>
        <telerik:SomeControl Grid.Row="1" Source="http://www.telerik.com"></telerik:SomeControl>
    </Grid>
</navigation:Page>

BR,
Timo

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 18 Oct 2012, 03:21 PM
Hello Timo,

Yes, there is such a control - RadHtmlPlaceholder. You can examine it in our online demos. However, before using this control in your application, you need to consider its implementation and requirements.

First, in order to display external pages within the browser, the control needs a windowless Silverlight plug-in. However, the windowless mode has some known limitations described here.

Also, the RadHtmlPlaceholder is designed to display the external pages in an IFrame above the Silverlight plug-in. This basically means that the RadHtmlPlaceholder content (web page) is displayed above the entire Silverlight application.

If these specifics of the RadHtmlPlaceholder won't interfere with the requirements of your application, you can take a look at our documentation to get started with the control.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Timo
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or