Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
Tilepane with frame
posted

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 Frame
Dim tilePane1 As New TilePane
tilePane1.Header = "New Tile"
navig.Source = (New Uri(("/Views/Ven.xaml?Cat=1")), UriKind.Relative))
tilePane1.Content = navig
tlPanelliD.Items.Add(tilePane1)
...

For i As Integer = tlPanelliD.Items.Count - 1 To 0 Step -1
  tlPanelliD.Items.Remove(tlPanelliD.Items(i))
Next
Dim navig As New Frame
Dim tilePane1 As New TilePane
tilePane1.Header = "New Tile"
navig.Source = (New Uri(("/Views/Ven.xaml?Cat=2")), UriKind.Relative))
tilePane1.Content = navig
tlPanelliD.Items.Add(tilePane1)

Thank you