can now debug project directly

This commit is contained in:
Daniel Clark
2021-02-09 12:15:57 +00:00
parent e1b3b1e6c9
commit e10baed2d7
27 changed files with 137 additions and 423 deletions
@@ -0,0 +1,21 @@
<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>uap10.0.19041</TargetFrameworks>
<Platforms>AnyCPU;x64</Platforms>
<EnableTypeInfoReflection>false</EnableTypeInfoReflection>
<EnableXBindDiagnostics>false</EnableXBindDiagnostics>
<LangVersion>9.0</LangVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj" />
</ItemGroup>
<ItemGroup>
<Page Include="NotificationFlyoutPresenter.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
</Project>
@@ -0,0 +1,24 @@
<controls:NotificationFlyoutPresenter
x:Class="NotificationFlyout.Sample.Uwp.NotificationFlyoutPresenter"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:NotificationFlyout.Uwp.UI.Controls">
<StackPanel
Width="330"
Height="500"
Margin="24">
<ComboBox
x:Name="test"
Margin="0,0,0,8"
SelectionChanged="test_SelectionChanged">
<ComboBoxItem>System</ComboBoxItem>
<ComboBoxItem>Dark</ComboBoxItem>
<ComboBoxItem>Light</ComboBoxItem>
</ComboBox>
<Button Margin="0,0,0,8" Content="Button" />
<Slider Margin="0,0,0,8" />
<TextBox Margin="0,0,0,8" />
<ToggleButton Margin="0,0,0,8" />
<CalendarView Margin="0,0,0,8" />
</StackPanel>
</controls:NotificationFlyoutPresenter>
@@ -0,0 +1,31 @@
namespace NotificationFlyout.Sample.Uwp
{
public sealed partial class NotificationFlyoutPresenter
{
public NotificationFlyoutPresenter()
{
InitializeComponent();
}
private void test_SelectionChanged(object sender, Windows.UI.Xaml.Controls.SelectionChangedEventArgs e)
{
if (test.SelectedIndex == 0)
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Default;
}
if (test.SelectedIndex == 1)
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Dark;
}
if (test.SelectedIndex == 2)
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Light;
}
}
}
}
@@ -0,0 +1,29 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("NotificationFlyout.Sample.Uwp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NotificationFlyout.Sample.Uwp")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ComVisible(false)]