forked from xamarin/Xamarin.Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X] send tree changed events on parenting (xamarin#8760)
so thye will be triggered in all cases
- Loading branch information
1 parent
0250aef
commit ad78adb
Showing
9 changed files
with
67 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Xamarin.Forms.Core/Xaml/Diagnostics/VisualTreeChangeEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Xamarin.Forms.Xaml.Diagnostics | ||
{ | ||
public class VisualTreeChangeEventArgs : EventArgs | ||
{ | ||
public VisualTreeChangeEventArgs(object parent, object child, int childIndex, VisualTreeChangeType changeType) | ||
{ | ||
Parent = parent; | ||
Child = child; | ||
ChildIndex = childIndex; | ||
ChangeType = changeType; | ||
} | ||
|
||
public object Parent { get; } | ||
public object Child { get; } | ||
public int ChildIndex { get; } | ||
public VisualTreeChangeType ChangeType { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Xamarin.Forms.Xaml.Diagnostics | ||
{ | ||
public class XamlSourceInfo | ||
{ | ||
public XamlSourceInfo(Uri sourceUri, int lineNumber, int linePosition) | ||
{ | ||
SourceUri = sourceUri; | ||
LineNumber = lineNumber; | ||
LinePosition = linePosition; | ||
} | ||
|
||
public Uri SourceUri { get; } | ||
public int LineNumber { get; } | ||
public int LinePosition { get; } | ||
|
||
public void Deconstruct(out Uri sourceUri, out int lineNumber, out int linePosition) | ||
{ | ||
sourceUri = SourceUri; | ||
lineNumber = LineNumber; | ||
linePosition = LinePosition; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters