Skip to content

Commit

Permalink
test: Added integrations tests from WinUI for CalendarView and Calend…
Browse files Browse the repository at this point in the history
…arDatePicker
  • Loading branch information
carldebilly committed Jun 3, 2021
1 parent 58587d7 commit c0cb2f6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@ namespace Private.Infrastructure
{
public partial class TestServices
{
public class WindowHelper
public static class WindowHelper
{
private static UIElement _originalWindowContent = null;

public static bool UseActualWindowRoot { get; set; }

public static object WindowContent
public static UIElement WindowContent
{
get
{
if (UseActualWindowRoot)
{
return Windows.UI.Xaml.Window.Current.Content;
}
return EmbeddedTestRootControl.Content;
return EmbeddedTestRootControl.Content as UIElement;
}

internal set
{
if (UseActualWindowRoot)
{
Windows.UI.Xaml.Window.Current.Content = value as UIElement;
Windows.UI.Xaml.Window.Current.Content = value;
}
else if (EmbeddedTestRootControl is ContentControl content)
{
Expand Down

0 comments on commit c0cb2f6

Please sign in to comment.