WPF - Compilation error: Tags of type 'PropertyArrayStart' are not supported in template sections

前端 未结 1 500
失恋的感觉
失恋的感觉 2021-02-07 02:03

Ordinarily I wouldn\'t just post an error message on SO, but after a Google search only found one hit, I thought I\'d at least open the floor for this error here on SO.

1条回答
  •  别跟我提以往
    2021-02-07 02:36

    It's been an eventful 27 minutes... :)

    Changing the dependency property's type from unit[] to IList solved the problem. Best of all, it didn't requite many code changes as the array already implements that interface.

    I'm not sure whether dispatching to the array via the interface (callvirt) is slower. My guess is yes.

    The original error message hints that there's something going on here that I don't quite understand. I'll accept any answer that explains it properly.

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