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

前端 未结 2 357
青春惊慌失措
青春惊慌失措 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}"
    
    0 讨论(0)
  • 2020-12-16 13:39

    Reply from Microsoft support team "Thanks for the update. I was afraid of that, since my testing found similar results. It seems there is some internal WPF tracing code which does not adhere to the specified settings. In the meantime, We don’t have any suggestions other than finding the Resource Dictionary (or the relevant type) and correcting the issues that the trace output is warning about.

    if a debugger was attached, there will always be some WPF tracing emitted regardless of the settings specified in the IDE (or in the app.config). Unfortunately, the output you are receiving appears to fall into this category. Regrettably, there is no way to turn off all the WPF trace output from being emitted

    We could certainly file a feature request for the product for this to be considered in a future release, but otherwise I don’t see a way for you to avoid the issue in the current release.

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