Hi,
We are thinking of developing an application in silverlight using the telerik controls - in particular, the HTML placeholder control.
One thing vital to the application is the ability for users to click on particular links on a generated HTML document and for the application to display a window based on what was clicked (but for the browser itself to continue displaying the page).
With a standard web browser control, you can just trigger code off the BeforeNavigate event, check to see if the URL is one generated by the application and cancel the navigation etc.
I see that the HTMLPlaceHolder control has a UrlLoaded event, but I assume this is only triggered after the HTML document has finished loading. Is this the only event that the control has?
Since the only links the application cares about are generated by the system, they can take any form, so one idea I have is to simply make the links point to non existent anchors on the page. For example, if the document is test.html, linking to test.html#contentclicked would not cause the page to reload. I am unsure if this would trigger the UrlLoaded event either though.
Worst case, all the links could reload the page with an argument, but since this would actually trigger reloading of the page it would add lag to the interface and I would prefer to avoid it.
Can anyone shed any light on this issue?
We are thinking of developing an application in silverlight using the telerik controls - in particular, the HTML placeholder control.
One thing vital to the application is the ability for users to click on particular links on a generated HTML document and for the application to display a window based on what was clicked (but for the browser itself to continue displaying the page).
With a standard web browser control, you can just trigger code off the BeforeNavigate event, check to see if the URL is one generated by the application and cancel the navigation etc.
I see that the HTMLPlaceHolder control has a UrlLoaded event, but I assume this is only triggered after the HTML document has finished loading. Is this the only event that the control has?
Since the only links the application cares about are generated by the system, they can take any form, so one idea I have is to simply make the links point to non existent anchors on the page. For example, if the document is test.html, linking to test.html#contentclicked would not cause the page to reload. I am unsure if this would trigger the UrlLoaded event either though.
Worst case, all the links could reload the page with an argument, but since this would actually trigger reloading of the page it would add lag to the interface and I would prefer to avoid it.
Can anyone shed any light on this issue?