UWP Windows 10 project.
It would be a seemingly simple task: to display a page with a logo and a rotating load indicator.
private async void Page_Loaded(object sender, RoutedEventArgs e) { var coreDispatcher = Window.Current.Dispatcher; await coreDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { if (string.IsNullOrEmpty(SettingsManager.login) || string.IsNullOrEmpty(SettingsManager.password)) { invertUI(); } else { Signals.invokeAuthOK(); } }); } The ring is spinning, the logo does not appear.
<Image Name="Logo" Source="/Assets/SplashScreen.png" Width="310" Height="150" Margin="0,0,0,20"/> <StackPanel Name="LoadBox" Width="310" VerticalAlignment="Center" HorizontalAlignment="Center"> <ProgressRing Foreground="White" IsActive="True"/> </StackPanel> Tell me how to execute the code after all the elements on the form are rendered?
Page_Loadedto both of these questions? - VladD