How do I create n-numbers of tabs with the data controls in wpf?
Let's say the main application has a button called "new customer" and "save data." When "new customer" is pressed a new tab appears with two text boxes "Name" and "Customer Number" contained in the tab, and so on. Once the two fields are populated, pressing the "save Data" should store the information from the focused tab into a database.
The problem I have is that I have a static name for the "Name" and "Customer Number" text boxes as x:Name="CustomerName" and x:Name="CustomerNumber". I found that you cannot duplicate these.
Can someone advice on how I can tackle this problem? Thank you in advance!