File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,6 @@ public void OnCreate(string arguments)
110
110
/// <param name="initialProps">The initialProps.</param>
111
111
public void OnCreate ( string arguments , JObject initialProps )
112
112
{
113
- RootView . Background = ( Brush ) Application . Current . Resources [ "ApplicationPageBackgroundThemeBrush" ] ;
114
-
115
113
ApplyArguments ( arguments ) ;
116
114
RootView . StartReactApplication ( _reactInstanceManager , MainComponentName , initialProps ) ;
117
115
@@ -163,7 +161,9 @@ public Task DisposeAsync()
163
161
/// </remarks>
164
162
protected virtual ReactRootView CreateRootView ( )
165
163
{
166
- return new ReactRootView ( ) ;
164
+ ReactRootView rootView = new ReactRootView ( ) ;
165
+ rootView . Background = ( Brush ) Application . Current . Resources [ "ApplicationPageBackgroundThemeBrush" ] ;
166
+ return rootView ;
167
167
}
168
168
169
169
/// <summary>
You can’t perform that action at this time.
0 commit comments