x:Shared = false by default

后端 未结 1 1631
轻奢々
轻奢々 2021-01-25 10:48

Is it possible to set x:Shared = false by default somehow? I have many ResourceDictionary and I often forget to set it when adding new item, which can

相关标签:
1条回答
  • 2021-01-25 10:58

    No, it is not possibility, because x:Shared is used in XAML only. There is no code equivalent to set it in C# code, otherwise you could have solved the problem by creating an attached property.

    0 讨论(0)
提交回复
热议问题