Loaded event of a WPF user control fires more than once

前端 未结 3 2009
忘掉有多难
忘掉有多难 2020-12-05 01:54

To implement a tab-based environment in WPF we need to convert our forms to user controls, however when doing this, the Loaded event of the use

3条回答
  •  时光说笑
    2020-12-05 02:40

    Set a loaded flag in the event, and, if the flag has already been set, don't do anything.

提交回复
热议问题