subscriptions page added

This commit is contained in:
2024-03-08 20:48:31 +01:00
Unverified
parent 032c08a810
commit 70fdc10f50
14 changed files with 216 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="VDownload.Core.Views.Subscriptions.SubscriptionsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:VDownload.Core.Views.Subscriptions"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<TextBlock Text="AAAAAAAAAA"/>
</Grid>
</Page>

View File

@@ -0,0 +1,32 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using VDownload.Core.ViewModels.About;
using VDownload.Core.ViewModels.Subscriptions;
using Windows.Foundation;
using Windows.Foundation.Collections;
namespace VDownload.Core.Views.Subscriptions
{
public sealed partial class SubscriptionsView : Page
{
#region CONSTRUCTORS
public SubscriptionsView(SubscriptionsViewModel viewModel)
{
this.InitializeComponent();
this.DataContext = viewModel;
}
#endregion
}
}

View File

@@ -11,6 +11,7 @@
<ItemGroup>
<None Remove="About\AboutView.xaml" />
<None Remove="Home\HomeVideoCollectionView.xaml" />
<None Remove="Subscriptions\SubscriptionsView.xaml" />
</ItemGroup>
<ItemGroup>
@@ -44,6 +45,9 @@
<None Update="Home\HomeDownloadsView.xaml">
<Generator>MSBuild:Compile</Generator>
</None>
<Page Update="Subscriptions\SubscriptionsView.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Update="Home\HomeVideoCollectionView.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>

View File

@@ -6,10 +6,12 @@ using VDownload.Core.ViewModels.About;
using VDownload.Core.ViewModels.Authentication;
using VDownload.Core.ViewModels.Home;
using VDownload.Core.ViewModels.Settings;
using VDownload.Core.ViewModels.Subscriptions;
using VDownload.Core.Views.About;
using VDownload.Core.Views.Authentication;
using VDownload.Core.Views.Home;
using VDownload.Core.Views.Settings;
using VDownload.Core.Views.Subscriptions;
namespace VDownload.Core.Views
{
@@ -23,6 +25,7 @@ namespace VDownload.Core.Views
{ typeof(HomeDownloadsViewModel), typeof(HomeDownloadsView) },
{ typeof(HomeVideoViewModel), typeof(HomeVideoView) },
{ typeof(HomeVideoCollectionViewModel), typeof(HomeVideoCollectionView) },
{ typeof(SubscriptionsViewModel), typeof(SubscriptionsView) },
{ typeof(SettingsViewModel), typeof(SettingsView) },
{ typeof(AboutViewModel), typeof(AboutView) },
{ typeof(AuthenticationViewModel), typeof(AuthenticationView) }