Write Trace output to Expression Blend Results Output window RRS feed

  • Question

  • Hi,
    I'm trying to find a way to write some diagnostic and warning information to the Expression Blend "Results Output" pane from code (C#).
    What is the way to do that? I was hoping to be able to use syntax like:  
       System.Diagnostics.Trace.TraceInformation("Something happened");
       System.Diagnostics.Trace.TraceWarning("Some warning"); 
    However, this isn't working.

    Tuesday, December 8, 2009 10:19 AM

All replies

  • did you tried the Syntax
    System.Diagnostics.Debug.WriteLine or do you want specifig Info and or Warningmessages to be displayed?
    Wednesday, December 9, 2009 6:24 AM
  • Yes, I did try that with no effect. It seems that Blend doesn't attach a listener for these kind of output.
    Still, there should be some way to do it because Blend uses its output pane for exception occuring in C# code during parsing the XAML.

    I am actually developing an attached behavior and want to show some warnings according to the state of element which the attached behavior is bound to.

    Thursday, December 10, 2009 11:01 AM