1
// Copyright © Microsoft Corporation.
2
// This source is subject to the Microsoft Source License for Silverlight Controls (March 2008 Release).
3
// Please see http://go.microsoft.com/fwlink/?LinkID=111693 for details.
4
// All other rights reserved.
7
namespace System.Windows.Controls
10
/// Provides data for the TextParseError event.
12
public class DatePickerTextParseErrorEventArgs : EventArgs
14
private bool _throwException;
17
/// Initializes a new instance of the DatePickerTextParseErrorEventArgs class.
19
/// <param name="exception">The exception that initially triggered the TextParseError event.</param>
20
/// <param name="text">The text being parsed.</param>
21
public DatePickerTextParseErrorEventArgs(Exception exception,
25
this.Exception = exception;
29
/// Gets the exception that initially triggered the TextParseError event.
31
public Exception Exception
38
/// Gets the text being parsed when the TextParseError event was raised.
47
/// Gets or sets a value that indicates whether Exception should be thrown.
49
public bool ThrowException
53
return this._throwException;
57
if (value && this.Exception == null)
59
throw new ArgumentException("Cannot Throw Null Exception");
61
this._throwException = value;