public MainPage() { ProxyHelper.ApplyProxySettings(); this.InitializeComponent(); silentMediaPlayer = new MediaPlayer { Source = MediaSource.CreateFromUri(new Uri("ms-appx:///Assets/Media/silent.wav")), IsLoopingEnabled = true, }; silentMediaPlayer.CommandManager.IsEnabled = false; analyticsHeartbeatTimer = new DispatcherTimer() { Interval = AppConstants.Instance.HeartbeatInterval, }; analyticsHeartbeatTimer.Tick += AnalyticsHeartbeatTimer_Tick; analyticsHeartbeatTimer.Start(); AppConstants.Instance.ConstantsUpdated += Instance_ConstantsUpdated; xpoWebView.RequestedTheme = (ThemeHelper.GetCurrentTheme() == Theme.Light) ? ElementTheme.Light : ElementTheme.Dark; VisualStateManager.GoToState(this, nameof(SplashScreenVisualState), false); }
public MainPage() { ProxyHelper.ApplyProxySettings(); this.InitializeComponent(); silentMediaPlayer = new MediaPlayer { Source = MediaSource.CreateFromUri(new Uri("ms-appx:///Assets/Media/silent.wav")), IsLoopingEnabled = true, }; silentMediaPlayer.CommandManager.IsEnabled = false; xpotifyWebView.RequestedTheme = (ThemeHelper.GetCurrentTheme() == Theme.Light) ? ElementTheme.Light : ElementTheme.Dark; VisualStateManager.GoToState(this, nameof(SplashScreenVisualState), false); }
public MainPage() { ProxyHelper.ApplyProxySettings(); this.InitializeComponent(); silentMediaPlayer = new MediaPlayer { Source = MediaSource.CreateFromUri(new Uri("ms-appx:///Assets/Media/silent.wav")), IsLoopingEnabled = true, }; silentMediaPlayer.CommandManager.IsEnabled = false; WebViewHelper.Init(this.mainWebView); loadFailedAppVersionText.Text = PackageHelper.GetAppVersionString(); VisualStateManager.GoToState(this, "SplashScreen", false); }