-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6191 from pr8x/feature-devtools-inspect-popup
DevTools: Support for inspecting Popup visual tree
- Loading branch information
1 parent
86e81f6
commit c69ab45
Showing
13 changed files
with
406 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using Avalonia.Controls.Primitives; | ||
|
||
#nullable enable | ||
|
||
namespace Avalonia.Controls.Diagnostics | ||
{ | ||
/// <summary> | ||
/// Diagnostics interface to retrieve an associated <see cref="IPopupHost"/>. | ||
/// </summary> | ||
public interface IPopupHostProvider | ||
{ | ||
/// <summary> | ||
/// The popup host. | ||
/// </summary> | ||
IPopupHost? PopupHost { get; } | ||
|
||
/// <summary> | ||
/// Raised when the popup host changes. | ||
/// </summary> | ||
event Action<IPopupHost?>? PopupHostChanged; | ||
} | ||
} |
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,15 @@ | ||
#nullable enable | ||
|
||
namespace Avalonia.Controls.Diagnostics | ||
{ | ||
/// <summary> | ||
/// Helper class to provide diagnostics information for <see cref="ToolTip"/>. | ||
/// </summary> | ||
public static class ToolTipDiagnostics | ||
{ | ||
/// <summary> | ||
/// Provides access to the internal <see cref="ToolTip.ToolTipProperty"/> for use in DevTools. | ||
/// </summary> | ||
public static AvaloniaProperty<ToolTip?> ToolTipProperty = ToolTip.ToolTipProperty; | ||
} | ||
} |
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
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
Oops, something went wrong.