c# - WPF performance problems with PresentationTraceSources -
we're registering trace listener capture binding errors in our wpf application. works great when application started debugger attached, wpf trace events automatically activated.
when running outside debugger, trace events must manually enabled next line:
presentationtracesources.refresh(); this works far binding error trace events. however, observe performance issues, illustration when switching tabs repeatedly; tab switch gets slower every switch. attached debugger or when disabling binding error trace events commenting above statement, performance issues gone. funny thing is, tab switch not produce additional binding errors.
an analysis of difference between first tab switch , 10th in performance profiler shows longer time stems multiple calls frameworkelement.updatestyleproperty(). i'm not sure has regards binding error events.
so have thought difference between binding error trace events attached debugger , binding error trace events presentationtracesources.refresh() might be? help or thought appreciated.
c# wpf performance
No comments:
Post a Comment