Posts Tagged ‘WPF’

Dynamically Creating Tabs in WPF

Posted: April 22, 2013 by Sagar Wasule in Asp.Net, Programming Concepts, WPF
Tags: ,

In one of my recent project which I undertook I had to create tabs dynamically in WPF.  The idea is that the user selects a menu item and a tab is created and populated with a user control.  Like so many things, WPF makes this easy.  The thing I struggled with the most was getting the user control to display when the first tab was created.  Below is a function that takes a user control and tab name, creates a tab, and shows it to the user.