やりたいこと タブと各タブページにボタンを配置する。 タブページの個数と各ページの個数はデータによって変動するのでデータバインドで動的に生成できるようにする。 ↓こんな画面を作りたい XAML とりあえず全文、各要素の説明は下記。 MainWindow.xaml <TabControl x:Name="tabControl" Grid.Row="2" Grid.Column="3" Margin="5" ItemsSource="{Binding TabPanels}"> <TabControl.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Header}" /> </DataTemplate> </TabControl.ItemTemplate> <TabControl.ContentTemplate> <DataTempl