I added the code for the add tab but I'm getting errors I tried for a couple of days to correct the errors. I need some assistance. I posted the code below with a screenshot` of code here` of the new tab button.
private void AddTab_Click(object sender, RoutedEventArgs e)
{
var newTab = new TabViewItem();
newTab.IconSource = new SymbolIconSource() { Symbol = Symbol.Document };
newTab.Header = "New Tab";
Frame frame = new Frame();![8012-error.png][1]
newTab.Content = frame;
frame.Navigate(typeof("www.msn.com"));
sender.TabItems.add(newTab);
}
[1]: /answers/storage/attachments/8012-error.png