I am working on a WPF C# application. I was wondering how I can make this call on an Click button. Here is the code:
void tabControl_TabItemAdded(object sender, TabItemEventArgs e)
{
Grid DynamicGrid = new Grid();
DynamicGrid.VerticalAlignment = VerticalAlignment.Stretch;
e.TabItem.Content = DynamicGrid;
The TabItemEventArgs e is the call I want to make on this button. Here is the code:
private void button_Click(object sender, RoutedEventArgs e)
{
e.TabItem.Content = SOMETHING HERE
How can I move my item?