Stick to your first plan as it should work!
You do not need to refresh the Silverlight object in the page.
If you need more information on this tell me.
tiplist(3) ="tip4" Dim randomclass As New Random Dim i As Integer = randomclass.Next(0, tiplist.Count - 1) Me.txtTip.Text = tiplist(i) End Sub
varslCtl = null;
slCtl = sender.get_element();}
postit is registered in the control's app.xaml.vb as follows:Private Sub Application_Startup(ByVal o As Object, ByVal e As StartupEventArgs) Handles Me.Startup Me.RootVisual = New Page() Dim smt As Page = New Page()
System.Windows.Browser.HtmlPage.RegisterScriptableObject("postit", smt) End Sub
Can you see anything wrong with this (apart from hardcoding etc.)?
Here is a walkthrough I wrote. It should work well for you and is simple and easy to follow.