-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support for multiple XamlRoots
- Loading branch information
1 parent
3042db8
commit 09764b2
Showing
3 changed files
with
39 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using DirectUI; | ||
#nullable enable | ||
|
||
using Uno.UI.Xaml.Core; | ||
|
||
namespace Windows.UI.Xaml | ||
namespace Windows.UI.Xaml; | ||
|
||
public sealed partial class XamlRoot | ||
{ | ||
public sealed partial class XamlRoot | ||
{ | ||
//TODO Uno: This implementation does not match WinUI, but we currently support only | ||
//a single XamlRoot and a single window. This will need to be adjusted later though. | ||
internal VisualTree VisualTree => DXamlCore.Current.GetHandle().ContentRootCoordinator.CoreWindowContentRoot.VisualTree; | ||
} | ||
internal VisualTree VisualTree { get; set; } | ||
} |