Skip to content

Commit d6789ee

Browse files
committed
Adding default application background behavior.
1 parent 38b29cb commit d6789ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ReactWindows/ReactNative/ReactPage.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Collections.Generic;
44
using Windows.UI.Xaml;
55
using Windows.UI.Xaml.Controls;
6+
using Windows.UI.Xaml.Media;
67

78
namespace ReactNative
89
{
@@ -32,9 +33,6 @@ public ReactPage(
3233
_reactInstanceManager = CreateReactInstanceManager(jsBundleFile, packages);
3334

3435
RootView = CreateRootView();
35-
RootView.HorizontalAlignment = HorizontalAlignment.Stretch;
36-
RootView.VerticalAlignment = VerticalAlignment.Stretch;
37-
3836
Content = RootView;
3937
}
4038

@@ -51,6 +49,7 @@ public ReactRootView RootView
5149
/// </summary>
5250
public void OnCreate()
5351
{
52+
RootView.Background = (Brush)Application.Current.Resources["ApplicationPageBackgroundThemeBrush"]
5453
RootView.StartReactApplication(_reactInstanceManager, _mainComponentName);
5554
}
5655

0 commit comments

Comments
 (0)