Why do tab controls reuse View instances when changing tab

后端 未结 1 716
盖世英雄少女心
盖世英雄少女心 2020-12-06 01:12

I have a WPF project following an MVVM pattern.

I have one control that contains a tab control. The tab control binds to an observable collection. Each item in the o

相关标签:
1条回答
  • 2020-12-06 01:57

    A TabControl does recycling virtualization internally. You can find two different approaches to prevent this in this StackOverflow questions:

    • WPF TabControl - how to preserve control state within tab items (MVVM pattern)
    0 讨论(0)
提交回复
热议问题