How to use nested class in WPF XAML?

前端 未结 1 1707
梦如初夏
梦如初夏 2020-12-03 10:20

I am refactoring the code from sample:

  • 24.129.21. Master Detail Binding
    from C# / CSharp Tutorial » Windows Presentation Foundation » Binding)
相关标签:
1条回答
  • 2020-12-03 10:39

    Unfortunately, what you want to do is not possible in XAML (from MSDN):

    Your custom class must not be a nested class. Nested classes and the "dot" in their general CLR usage syntax interfere with other WPF and/or XAML features such as attached properties.

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