示例#1
0
 public MainWindow()
 {
     TraceListener = new MyTraceListener();
     InitializeComponent();
     Trace.Listeners.Add(TraceListener);
     uristinfo.SetBinding(TextBox.TextProperty, new Binding("Trace") { Source = TraceListener });
 }
示例#2
0
 public MainWindow()
 {
     TraceListener = new MyTraceListener();
     InitializeComponent();
     Trace.Listeners.Add(TraceListener);
     uristinfo.SetBinding(TextBox.TextProperty, new Binding("Trace")
     {
         Source = TraceListener
     });
 }