Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Tabcontrol を配置する必要があり、MVVM パターンに固執する必要があります。ただし、コードビハインドでコードを記述しないとそれを行うことはできません。現在、デフォルトのタブが 1 つあり、その後のタブの内容は動的です
この場合、タブ コントロールのメイン ビュー モデルを作成し、動的タブの場合は、メイン ビュー モデルで宣言された ObservableCollection に配置します。
そのコレクションをその TabControl の ItemSouce にバインドする必要があります。
そうすれば、コレクションから動的に追加/削除できます。