Browse Source
Make sure that if we're attached to a logical tree, we can invoke DetachedFromLogicalTree when Parent is set to null. This also has a side effect in that Parent will now be non-null when DetachedFromLogicalTree is called.pull/467/head
3 changed files with 42 additions and 9 deletions
@ -0,0 +1,22 @@ |
|||
// Copyright (c) The Perspex Project. All rights reserved.
|
|||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|||
|
|||
using System; |
|||
|
|||
namespace Perspex |
|||
{ |
|||
/// <summary>
|
|||
/// Exception signifying an internal logic error in Perspex.
|
|||
/// </summary>
|
|||
public class PerspexInternalException : Exception |
|||
{ |
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="PerspexInternalException"/> class.
|
|||
/// </summary>
|
|||
/// <param name="message">The exception message.</param>
|
|||
public PerspexInternalException(string message) |
|||
: base(message) |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue