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

2 posts, 0 answers
  1. Timo
    Timo avatar
    1 posts
    Member since:
    Oct 2012

    Posted 16 Oct 2012 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 18 Oct 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top