Hello, I have a problem when I remove a tilepane with frame and I add a new tilepane with other frame. I have the message "Unable to load the contents of the Uri".
This is the code: Dim navig As New FrameDim tilePane1 As New TilePanetilePane1.Header = "New Tile"navig.Source = (New Uri(("/Views/Ven.xaml?Cat=1")), UriKind.Relative))tilePane1.Content = navigtlPanelliD.Items.Add(tilePane1)...
For i As Integer = tlPanelliD.Items.Count - 1 To 0 Step -1 tlPanelliD.Items.Remove(tlPanelliD.Items(i))NextDim navig As New FrameDim tilePane1 As New TilePanetilePane1.Header = "New Tile"navig.Source = (New Uri(("/Views/Ven.xaml?Cat=2")), UriKind.Relative))tilePane1.Content = navigtlPanelliD.Items.Add(tilePane1)
Thank you
Hello,
I have been looking into your issue and had tried reproducing it with a sample of my own. I almost did, except I couldn’t get an error to show probably because I am using C# and there are such difference in the two languages. I think this is caused due to Silverlight’s limitation of having only one Frame instance at any time. What I mean by almost reproduced your behavior, is that I couldn’t make the Frame to work as expected while I kept adding new Frames. I finally managed to simulate switching the panes by using the initially used Frame’s Navigate method. I can suggest instead of removing and adding TilePanes I can suggest you Navigate your frame and setting the rest of the Tilepane’s properties that do not match.
Hope this is helps. Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi, I have change the App.xaml.vb with this:
What do you think?I will not be more wrong.
Private Sub Application_UnhandledException(ByVal sender As object, ByVal e As ApplicationUnhandledExceptionEventArgs) Handles Me.UnhandledException If Not System.Diagnostics.Debugger.IsAttached Then e.Handled = True Deployment.Current.Dispatcher.BeginInvoke(New Action(Of ApplicationUnhandledExceptionEventArgs)(AddressOf ReportErrorToDOM), e) End If If e.ExceptionObject.Message.Contains("URI") Then '-2147024809 INVALIDO URI... e.Handled = True End If End Sub
Hello ,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Regards Petar.