WPF TabControl showing 2 Tabs from 1 View but working different

  Kiến thức lập trình

I have a problem. I want to display 2 pages from the same view in my TabControl. Both show the same thing, but it should be possible to work differently in them. Do I need some kind of index here or how can I solve this? At the moment it shows me both identically, so if I edit something in one it is also there in the other tab.

<TabItem><views:Parameter DataContext="{Binding ParameterVM}" /></TabItem>
<TabItem><views:Parameter DataContext="{Binding ParameterVM}" /></TabItem>

New contributor

bobo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT