Strange resource dictionary warnings appear in output window even when the WPF trace settings are turned off

前端 未结 2 365
青春惊慌失措
青春惊慌失措 2020-12-16 12:59

I am using Visual studio 2011 beta with the april 2012 update installed .I have my Debugging options -> Output window > WPF trace settings all the values including Resource

2条回答
  •  误落风尘
    2020-12-16 13:32

    I got these Messages when mixing static resources and dynamic resources. Setting all the Problematic Resource settings to StaticResource solved the problem. Instead of:

    Style="{DynamicResource CheckBoxCooperStyle1}"
    

    Use:

    Style="{StaticResource CheckBoxCooperStyle1}"
    

提交回复
热议问题