Archived
1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
FoxTube/FoxTube/Views/HomeSections/Subscriptions.xaml.cs
T
Michael Gordeev a792132428 App UI development
Updated and enchanced MainPage
Updated Core
2020-05-12 01:32:41 +03:00

38 lines
749 B
C#

using FoxTube.Attributes;
using FoxTube.Controls.Cards;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace FoxTube.Views.HomeSections
{
/// <summary>
/// Users subscriptions videos page
/// </summary>
[Refreshable]
public sealed partial class Subscriptions : Page
{
public Subscriptions() =>
InitializeComponent();
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
if (e.NavigationMode == NavigationMode.New)
LoadContent();
}
private void Page_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
if (!(Parent is Frame))
LoadContent();
}
private void LoadContent()
{
loadingScreen.Activate();
// TODO: Load content
}
}
}