상속: System.Diagnostics.TraceListener
예제 #1
0
 public static void BindsWithoutError(object viewModel, Func <Window> process)
 {
     using (AssertNoBindingErrorsTraceListener.Start())
     {
         Window window = process();
         window.DataContext = viewModel;
         window.Show();                 // force binding
     }
 }
예제 #2
0
 public DisposableToken(AssertNoBindingErrorsTraceListener listener)
 {
     this.listener = listener;
 }
예제 #3
0
        public static IDisposable Start(SourceLevels level = SourceLevels.Warning)
        {
            var listener = new AssertNoBindingErrorsTraceListener(level);

            return(new DisposableToken(listener));
        }
			public DisposableToken(AssertNoBindingErrorsTraceListener listener)
			{
				this.listener = listener;
			}
	    public static IDisposable Start(SourceLevels level = SourceLevels.Warning)
		{
			
			var listener = new AssertNoBindingErrorsTraceListener(level);
			return new DisposableToken(listener);
		}