添加项目文件。

This commit is contained in:
akwkevin
2021-07-23 09:42:22 +08:00
commit f25a958797
2798 changed files with 352360 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Windows.Foundation;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Automation;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Navigation;
using UWP.Commons;
namespace UWP
{
public sealed partial class AppShell : Page
{
public AppShell()
{
this.InitializeComponent();
SampleViewSource.Source = SampleDefinitions.Definitions.GroupBy(x => x.Category);
}
private void SampleList_ItemClick(Object sender, ItemClickEventArgs e)
{
var definition = e.ClickedItem as SampleDefinition;
if (definition != null)
{
this.ContentFrame.Navigate(definition.Type);
SamplesSplitView.IsPaneOpen = false;
}
}
private void Button_Click(Object sender, RoutedEventArgs e)
{
SamplesSplitView.IsPaneOpen = !SamplesSplitView.IsPaneOpen;
}
}
}