我正在开发一个WPF C#应用程序。我想知道如何通过点击按钮进行此调用。这是代码:
void tabControl_TabItemAdded(object sender, TabItemEventArgs e)
{
Grid DynamicGrid = new Grid();
DynamicGrid.VerticalAlignment = VerticalAlignment.Stretch;
e.TabItem.Content = DynamicGrid;
TabItemEventArgs e是我想在此按钮上进行的调用。这是代码:
private void button_Click(object sender, RoutedEventArgs e)
{
e.TabItem.Content = SOMETHING HERE
如何移动我的物品?