Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > HTMLPlaceHolder > Scroller Bar position

Not answered Scroller Bar position

Feed from this thread
  • Dave avatar

    Posted on Jan 19, 2012 (permalink)

    I have seen an example of getting and setting the position of the ScrollViewer control.  How do we Get and Set the position of each ScrollViewer bar within the RadHtmlPlaceHolder?  Any guidance is appreciated.
    Cheers,

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Jan 23, 2012 (permalink)

    Hello Dave,

    The RadHtmlPlaceholder places its content in a div (if the RadHtmlPlaceholder.HtmlSource is set) or in an IFrame (if the RadHtmlPlaceholder.SourceUrl is set) on the html/aspx page hosting the Silverlight plug-in. This is why you can control the scroll bars in the RadHtmlPlaceholder either by setting the overflow properties applied to the html/aspx page elements or by controlling the IFrame scrolling attribute.

    Basically when you display an external page in the RadHtmlPlaceholder, you can access the content of the IFrame object like so:
    HtmlElement iframe = (HtmlElement)myHtmlPlaceHolder.HtmlPresenter.Children[0];
    HtmlWindow contentWindow = iframe.GetProperty("contentWindow") as HtmlWindow;
    HtmlDocument document = contentWindow.GetProperty("document") as HtmlDocument;

    I hope this information will help you.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > HTMLPlaceHolder > Scroller Bar position
Related resources for "Scroller Bar position"

Silverlight HtmlPlaceHolder Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]