/// <summary> /// Stop listening WPF binding error /// </summary> public static void Detach() { errorListener.ErrorCatched -= OnErrorCatched; errorListener.Dispose(); errorListener = null; }
/// <summary> /// Start listening WPF binding error /// </summary> public static void Attach() { errorListener = new BindingErrorListener(); errorListener.ErrorCatched += OnErrorCatched; }