a792132428
Updated and enchanced MainPage Updated Core
38 lines
749 B
C#
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
|
|
}
|
|
}
|
|
} |