0

Is it possible to clone arbitrary XAML elements and reuse them by renaming them and inserting them into the Page tree?

For example, cloning a PivotItem and changing and adding it to the Pivot (new one) with all its children.

Sam
  • 771
  • 2
  • 8
  • 21

1 Answers1

0

This code can help you :

this.ContentPanel.Children.Clear();
MyWindowsApplication.View.Page1 page1 = new MyWindowsApplication.View.Page1();
this.ContentPanel.Children.Add(page1);
Fly_federer
  • 206
  • 1
  • 2
  • 12