Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception

前端 未结 5 1513
清歌不尽
清歌不尽 2020-12-09 15:26

I am using http://blogs.microsoft.co.il/blogs/justguy/archive/2009/01/19/wpf-combobox-with-checkboxes-as-items-it-will-even-update-on-the-fly.aspx?CommentPosted=true#comment

5条回答
  •  感动是毒
    2020-12-09 15:54

    By using a DynamicResourceinstead of StaticResource, it will find the resource at runtime, so you don't have to worry about the order of the declarations in the XAML.

    There may be downsides to this (?), but in particularly sticky cases, this has been the answer to my prayers.

提交回复
热议问题