Error when using StaticResourceExtension inside Style.Resources

前端 未结 2 1076
情歌与酒
情歌与酒 2020-12-20 08:59

I am using DynamicResource in a template, and StaticResourceExtensions as resource inside each style using that template, so that the DynamicResource is evaluated differentl

2条回答
  •  隐瞒了意图╮
    2020-12-20 09:11

    Pretty sure this is a BAML compilation related bug. The code will work if compiled dynamically at run time using XamlReader.Parse. This could be used as a workaround as well, i suppose.

提交回复
热议问题