init
@@ -0,0 +1,8 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,118 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '15.0'">
|
||||||
|
<VisualStudioVersion>15.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|x86">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x86</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x86">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x86</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|ARM">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>ARM</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|ARM">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>ARM</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|ARM64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>ARM64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|ARM64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>ARM64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|AnyCPU">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>AnyCPU</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|AnyCPU">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>AnyCPU</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<ProjectGuid>46ff88d3-c2c7-419b-94f6-1ac01307c31a</ProjectGuid>
|
||||||
|
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
|
||||||
|
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||||||
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
|
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
|
||||||
|
<EntryPointProjectUniqueName>..\NotificationFlyout.Tray\NotificationFlyout.Tray.csproj</EntryPointProjectUniqueName>
|
||||||
|
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
|
||||||
|
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
|
||||||
|
<GenerateTestArtifacts>True</GenerateTestArtifacts>
|
||||||
|
<AppxBundlePlatforms>neutral</AppxBundlePlatforms>
|
||||||
|
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</AppxManifest>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Images\SplashScreen.scale-200.png" />
|
||||||
|
<Content Include="Images\LockScreenLogo.scale-200.png" />
|
||||||
|
<Content Include="Images\Square150x150Logo.scale-200.png" />
|
||||||
|
<Content Include="Images\Square44x44Logo.scale-200.png" />
|
||||||
|
<Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
||||||
|
<Content Include="Images\StoreLogo.png" />
|
||||||
|
<Content Include="Images\Wide310x150Logo.scale-200.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.19041.8" PrivateAssets="all" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Tray\NotificationFlyout.Tray.csproj">
|
||||||
|
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<Package
|
||||||
|
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||||
|
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||||
|
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||||
|
IgnorableNamespaces="uap rescap">
|
||||||
|
|
||||||
|
<Identity
|
||||||
|
Name="c0348fb7-8b62-4676-b4d5-18e5a00219f1"
|
||||||
|
Publisher="CN=dan"
|
||||||
|
Version="1.0.0.0" />
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>NotificationFlyout.Package</DisplayName>
|
||||||
|
<PublisherDisplayName>dan</PublisherDisplayName>
|
||||||
|
<Logo>Images\StoreLogo.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
|
<Dependencies>
|
||||||
|
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||||
|
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
|
||||||
|
</Dependencies>
|
||||||
|
|
||||||
|
<Resources>
|
||||||
|
<Resource Language="x-generate"/>
|
||||||
|
</Resources>
|
||||||
|
|
||||||
|
<Applications>
|
||||||
|
<Application Id="App"
|
||||||
|
Executable="$targetnametoken$.exe"
|
||||||
|
EntryPoint="$targetentrypoint$">
|
||||||
|
<uap:VisualElements
|
||||||
|
DisplayName="NotificationFlyout"
|
||||||
|
Description="NotificationFlyout.Package"
|
||||||
|
BackgroundColor="transparent"
|
||||||
|
Square150x150Logo="Images\Square150x150Logo.png"
|
||||||
|
Square44x44Logo="Images\Square44x44Logo.png">
|
||||||
|
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" />
|
||||||
|
<uap:SplashScreen Image="Images\SplashScreen.png" />
|
||||||
|
</uap:VisualElements>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
|
||||||
|
<Capabilities>
|
||||||
|
<Capability Name="internetClient" />
|
||||||
|
<rescap:Capability Name="runFullTrust" />
|
||||||
|
</Capabilities>
|
||||||
|
</Package>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<UserControl
|
||||||
|
x:Class="NotificationFlyout.Sample.MyUserControl1"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
<Grid>
|
||||||
|
<ListBox
|
||||||
|
Width="300"
|
||||||
|
Height="400"
|
||||||
|
Background="Transparent">
|
||||||
|
<ListBoxItem Content="Item 1" />
|
||||||
|
<ListBoxItem Content="Item 2" />
|
||||||
|
<ListBoxItem Content="Item 3" />
|
||||||
|
<ListBoxItem Content="Item 4" />
|
||||||
|
<ListBoxItem Content="Item 5" />
|
||||||
|
<ListBoxItem Content="Item 6" />
|
||||||
|
</ListBox>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Sample
|
||||||
|
{
|
||||||
|
public sealed partial class MyUserControl1 : UserControl
|
||||||
|
{
|
||||||
|
public MyUserControl1()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,151 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{675B9345-F416-44EF-8154-B7F6943877FA}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>NotificationFlyout.Sample</RootNamespace>
|
||||||
|
<AssemblyName>NotificationFlyout.Sample</AssemblyName>
|
||||||
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
|
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||||
|
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.19041.0</TargetPlatformVersion>
|
||||||
|
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||||||
|
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<OutputPath>bin\x86\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<OutputPath>bin\ARM64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="MyUserControl1.xaml.cs">
|
||||||
|
<DependentUpon>MyUserControl1.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<EmbeddedResource Include="Properties\NotificationFlyout.Sample.rd.xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||||
|
<Version>6.2.11</Version>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Include="MyUserControl1.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||||
|
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
@@ -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")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("NotificationFlyout.Sample")]
|
||||||
|
[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)]
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
This file contains Runtime Directives, specifications about types your application accesses
|
||||||
|
through reflection and other dynamic code patterns. Runtime Directives are used to control the
|
||||||
|
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
|
||||||
|
library does not do any reflection, then you generally do not need to edit this file. However,
|
||||||
|
if your library reflects over types, especially types passed to it or derived from its types,
|
||||||
|
then you should write Runtime Directives.
|
||||||
|
|
||||||
|
The most common use of reflection in libraries is to discover information about types passed
|
||||||
|
to the library. Runtime Directives have three ways to express requirements on types passed to
|
||||||
|
your library.
|
||||||
|
|
||||||
|
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
|
||||||
|
Use these directives to reflect over types passed as a parameter.
|
||||||
|
|
||||||
|
2. SubTypes
|
||||||
|
Use a SubTypes directive to reflect over types derived from another type.
|
||||||
|
|
||||||
|
3. AttributeImplies
|
||||||
|
Use an AttributeImplies directive to indicate that your library needs to reflect over
|
||||||
|
types or methods decorated with an attribute.
|
||||||
|
|
||||||
|
For more information on writing Runtime Directives for libraries, please visit
|
||||||
|
https://go.microsoft.com/fwlink/?LinkID=391919
|
||||||
|
-->
|
||||||
|
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||||
|
<Library Name="NotificationFlyout.Sample">
|
||||||
|
|
||||||
|
<!-- add directives for your library here -->
|
||||||
|
|
||||||
|
</Library>
|
||||||
|
</Directives>
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<Application x:Class="NotificationFlyout.Tray.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
</Application>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Tray
|
||||||
|
{
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,31 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
<AssetTargetFallback>uap10.0.19041</AssetTargetFallback>
|
||||||
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
|
<StartupObject>NotificationFlyout.Tray.Program</StartupObject>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="Assets\Icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.Toolkit.Wpf.UI.XamlHost" Version="6.1.2" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Sample\NotificationFlyout.Sample.csproj" />
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj" />
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Wpf.UI.Controls\NotificationFlyout.Wpf.UI.Controls.csproj" />
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.XamlHost\NotificationFlyout.XamlHost.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Assets\Icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
using NotificationFlyout.Tray.Views;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Tray
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
[STAThread()]
|
||||||
|
public static void Main()
|
||||||
|
{
|
||||||
|
using (new XamlHost.App())
|
||||||
|
{
|
||||||
|
var app = new App();
|
||||||
|
new Shell();
|
||||||
|
app.Run();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<NotificationFlyout
|
||||||
|
x:Class="NotificationFlyout.Tray.Views.Shell"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:sample="clr-namespace:NotificationFlyout.Sample;assembly=NotificationFlyout.Sample">
|
||||||
|
<NotificationFlyout.Icon>
|
||||||
|
<NotificationFlyoutIcon IconSource="/Assets/Icon.ico" />
|
||||||
|
</NotificationFlyout.Icon>
|
||||||
|
<NotificationFlyout.FlyoutContent>
|
||||||
|
<sample:MyUserControl1 />
|
||||||
|
</NotificationFlyout.FlyoutContent>
|
||||||
|
</NotificationFlyout>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
namespace NotificationFlyout.Tray.Views
|
||||||
|
{
|
||||||
|
public partial class Shell
|
||||||
|
{
|
||||||
|
public Shell()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{9987B132-E42C-401A-9AD5-E62529FACA40}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>NotificationFlyout.Uwp.UI.Controls</RootNamespace>
|
||||||
|
<AssemblyName>NotificationFlyout.Uwp.UI.Controls</AssemblyName>
|
||||||
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
|
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||||
|
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.19041.0</TargetPlatformVersion>
|
||||||
|
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||||||
|
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<OutputPath>bin\x86\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<OutputPath>bin\ARM64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="NotificationFlyoutPresenter\NotificationFlyoutPresenter.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<EmbeddedResource Include="Properties\NotificationFlyout.Uwp.UI.Controls.rd.xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||||
|
<Version>6.2.11</Version>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Include="NotificationFlyoutPresenter\NotificationFlyoutPresenter.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="Themes\Generic.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||||
|
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
<PropertyGroup>
|
||||||
|
<EnableTypeInfoReflection>false</EnableTypeInfoReflection>
|
||||||
|
<EnableXBindDiagnostics>false</EnableXBindDiagnostics>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Uwp.UI.Controls
|
||||||
|
{
|
||||||
|
public class NotificationFlyoutPresenter : ContentControl
|
||||||
|
{
|
||||||
|
private Grid _root;
|
||||||
|
|
||||||
|
public NotificationFlyoutPresenter()
|
||||||
|
{
|
||||||
|
DefaultStyleKey = typeof(NotificationFlyoutPresenter);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void HideFlyout()
|
||||||
|
{
|
||||||
|
if (_root == null) return;
|
||||||
|
var flyout = FlyoutBase.GetAttachedFlyout(_root);
|
||||||
|
flyout.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShowFlyout(FlyoutPlacementMode placementMode)
|
||||||
|
{
|
||||||
|
if (_root == null) return;
|
||||||
|
var flyout = FlyoutBase.GetAttachedFlyout(_root);
|
||||||
|
flyout.ShowAt(_root, new FlyoutShowOptions { Placement = placementMode });
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShowFlyout()
|
||||||
|
{
|
||||||
|
if (_root == null) return;
|
||||||
|
var flyout = FlyoutBase.GetAttachedFlyout(_root);
|
||||||
|
flyout.ShowAt(_root);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnApplyTemplate()
|
||||||
|
{
|
||||||
|
_root = GetTemplateChild("Root") as Grid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<ResourceDictionary
|
||||||
|
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">
|
||||||
|
<Style TargetType="controls:NotificationFlyoutPresenter">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="controls:NotificationFlyoutPresenter">
|
||||||
|
<Grid x:Name="Root">
|
||||||
|
<FlyoutBase.AttachedFlyout>
|
||||||
|
<Flyout ShouldConstrainToRootBounds="False" ShowMode="Standard">
|
||||||
|
<ContentControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
|
||||||
|
</Flyout>
|
||||||
|
</FlyoutBase.AttachedFlyout>
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
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.Uwp.UI.Controls")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("NotificationFlyout.Uwp.UI.Controls")]
|
||||||
|
[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)]
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
This file contains Runtime Directives, specifications about types your application accesses
|
||||||
|
through reflection and other dynamic code patterns. Runtime Directives are used to control the
|
||||||
|
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
|
||||||
|
library does not do any reflection, then you generally do not need to edit this file. However,
|
||||||
|
if your library reflects over types, especially types passed to it or derived from its types,
|
||||||
|
then you should write Runtime Directives.
|
||||||
|
|
||||||
|
The most common use of reflection in libraries is to discover information about types passed
|
||||||
|
to the library. Runtime Directives have three ways to express requirements on types passed to
|
||||||
|
your library.
|
||||||
|
|
||||||
|
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
|
||||||
|
Use these directives to reflect over types passed as a parameter.
|
||||||
|
|
||||||
|
2. SubTypes
|
||||||
|
Use a SubTypes directive to reflect over types derived from another type.
|
||||||
|
|
||||||
|
3. AttributeImplies
|
||||||
|
Use an AttributeImplies directive to indicate that your library needs to reflect over
|
||||||
|
types or methods decorated with an attribute.
|
||||||
|
|
||||||
|
For more information on writing Runtime Directives for libraries, please visit
|
||||||
|
https://go.microsoft.com/fwlink/?LinkID=391919
|
||||||
|
-->
|
||||||
|
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||||
|
<Library Name="NotificationFlyout.Uwp.UI.Controls">
|
||||||
|
|
||||||
|
<!-- add directives for your library here -->
|
||||||
|
</Library>
|
||||||
|
</Directives>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<ResourceDictionary
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="ms-appx:///NotificationFlyout.Uwp.UI.Controls/NotificationFlyoutPresenter/NotificationFlyoutPresenter.xaml" />
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
<AssetTargetFallback>uap10.0.19041</AssetTargetFallback>
|
||||||
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.Toolkit.Wpf.UI.XamlHost" Version="6.1.2" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj" />
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Wpf.UI\NotificationFlyout.Wpf.UI.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
using NotificationFlyout.Wpf.UI.Extensions;
|
||||||
|
using NotificationFlyout.Wpf.UI.Helpers;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Controls
|
||||||
|
{
|
||||||
|
public class NotificationFlyout : DependencyObject
|
||||||
|
{
|
||||||
|
private const string ShellTrayHandleName = "Shell_TrayWnd";
|
||||||
|
|
||||||
|
public static readonly DependencyProperty IconProperty =
|
||||||
|
DependencyProperty.Register(nameof(Icon),
|
||||||
|
typeof(NotificationFlyoutIcon), typeof(NotificationFlyout),
|
||||||
|
new PropertyMetadata(null, OnIconPropertyChanged));
|
||||||
|
|
||||||
|
public static DependencyProperty FlyoutContentProperty =
|
||||||
|
DependencyProperty.Register(nameof(FlyoutContent),
|
||||||
|
typeof(Windows.UI.Xaml.UIElement), typeof(NotificationFlyout),
|
||||||
|
new PropertyMetadata(null, OnFlyoutContentPropertyChanged));
|
||||||
|
|
||||||
|
private NotificationFlyoutXamlHost _xamlHost;
|
||||||
|
|
||||||
|
public NotificationFlyout()
|
||||||
|
{
|
||||||
|
_xamlHost = new NotificationFlyoutXamlHost();
|
||||||
|
_xamlHost.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Windows.UI.Xaml.UIElement FlyoutContent
|
||||||
|
{
|
||||||
|
get => (Windows.UI.Xaml.UIElement)GetValue(FlyoutContentProperty);
|
||||||
|
set => SetValue(FlyoutContentProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public NotificationFlyoutIcon Icon
|
||||||
|
{
|
||||||
|
get => (NotificationFlyoutIcon)GetValue(IconProperty);
|
||||||
|
set => SetValue(IconProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void HideFlyout()
|
||||||
|
{
|
||||||
|
_xamlHost.HideFlyout();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShowFlyout()
|
||||||
|
{
|
||||||
|
_xamlHost.ShowFlyout();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnFlyoutContentPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
|
||||||
|
{
|
||||||
|
var sender = dependencyObject as NotificationFlyout;
|
||||||
|
sender?.OnFlyoutContentPropertyChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnIconPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
|
||||||
|
{
|
||||||
|
var sender = dependencyObject as NotificationFlyout;
|
||||||
|
sender?.OnIconPropertyChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnFlyoutContentPropertyChanged()
|
||||||
|
{
|
||||||
|
_xamlHost.FlyoutContent = FlyoutContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnIconPropertyChanged()
|
||||||
|
{
|
||||||
|
var shellTrayHandle = WindowHelper.GetHandle(ShellTrayHandleName);
|
||||||
|
if (shellTrayHandle == null) return;
|
||||||
|
|
||||||
|
var dpi = WindowHelper.GetDpi(shellTrayHandle);
|
||||||
|
|
||||||
|
var iconSource = SystemSettingsHelper.DefaultSystemTheme == SystemTheme.Dark ? Icon.IconSource : Icon.LightIconSource;
|
||||||
|
using var icon = iconSource.ConvertToIcon(dpi);
|
||||||
|
|
||||||
|
_xamlHost.SetNotificationIcon(icon.Handle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Controls
|
||||||
|
{
|
||||||
|
public class NotificationFlyoutIcon : DependencyObject
|
||||||
|
{
|
||||||
|
public static readonly DependencyProperty IconSourceProperty =
|
||||||
|
DependencyProperty.Register(nameof(IconSource),
|
||||||
|
typeof(ImageSource), typeof(NotificationFlyout));
|
||||||
|
|
||||||
|
public static readonly DependencyProperty LightIconSourceProperty =
|
||||||
|
DependencyProperty.Register(nameof(LightIconSource),
|
||||||
|
typeof(ImageSource), typeof(NotificationFlyout));
|
||||||
|
|
||||||
|
public ImageSource IconSource
|
||||||
|
{
|
||||||
|
get => (ImageSource)GetValue(IconSourceProperty);
|
||||||
|
set => SetValue(IconSourceProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ImageSource LightIconSource
|
||||||
|
{
|
||||||
|
get => (ImageSource)GetValue(LightIconSourceProperty);
|
||||||
|
set => SetValue(LightIconSourceProperty, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,193 @@
|
|||||||
|
using Microsoft.Toolkit.Wpf.UI.XamlHost;
|
||||||
|
using NotificationFlyout.Uwp.UI.Controls;
|
||||||
|
using NotificationFlyout.Wpf.UI.Extensions;
|
||||||
|
using NotificationFlyout.Wpf.UI.Helpers;
|
||||||
|
using System;
|
||||||
|
using System.Windows;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Controls
|
||||||
|
{
|
||||||
|
internal class NotificationFlyoutXamlHost : Window
|
||||||
|
{
|
||||||
|
internal static DependencyProperty FlyoutContentProperty =
|
||||||
|
DependencyProperty.Register(nameof(FlyoutContent),
|
||||||
|
typeof(Windows.UI.Xaml.UIElement), typeof(NotificationFlyoutXamlHost),
|
||||||
|
new PropertyMetadata(null, OnFlyoutContentPropertyChanged));
|
||||||
|
|
||||||
|
private WindowsXamlHost _host;
|
||||||
|
|
||||||
|
private NotificationIconHelper _notificationIconHelper;
|
||||||
|
private bool _taskbarChanged;
|
||||||
|
private TaskbarHelper _taskbarHelper;
|
||||||
|
|
||||||
|
public NotificationFlyoutXamlHost()
|
||||||
|
{
|
||||||
|
PrepareDefaultWindow();
|
||||||
|
PrepareWindowsXamlHost();
|
||||||
|
|
||||||
|
Loaded += OnLoaded;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Windows.UI.Xaml.UIElement FlyoutContent
|
||||||
|
{
|
||||||
|
get => (Windows.UI.Xaml.UIElement)GetValue(FlyoutContentProperty);
|
||||||
|
set => SetValue(FlyoutContentProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void HideFlyout()
|
||||||
|
{
|
||||||
|
var flyoutContentControl = GetNotificationFlyoutPresenter();
|
||||||
|
if (flyoutContentControl != null)
|
||||||
|
{
|
||||||
|
flyoutContentControl.HideFlyout();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void SetNotificationIcon(IntPtr handle)
|
||||||
|
{
|
||||||
|
_notificationIconHelper.SetIcon(handle);
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void ShowFlyout()
|
||||||
|
{
|
||||||
|
var flyoutContentControl = GetNotificationFlyoutPresenter();
|
||||||
|
if (flyoutContentControl != null)
|
||||||
|
{
|
||||||
|
var taskbarState = _taskbarHelper.GetCurrentState();
|
||||||
|
|
||||||
|
var flyoutPlacement = FlyoutPlacementMode.Bottom;
|
||||||
|
switch (taskbarState.Position)
|
||||||
|
{
|
||||||
|
case TaskbarPosition.Left:
|
||||||
|
flyoutPlacement = FlyoutPlacementMode.Right;
|
||||||
|
break;
|
||||||
|
case TaskbarPosition.Top:
|
||||||
|
flyoutPlacement = FlyoutPlacementMode.Bottom;
|
||||||
|
break;
|
||||||
|
case TaskbarPosition.Right:
|
||||||
|
flyoutPlacement = FlyoutPlacementMode.Left;
|
||||||
|
break;
|
||||||
|
case TaskbarPosition.Bottom:
|
||||||
|
flyoutPlacement = FlyoutPlacementMode.Top;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateWindow();
|
||||||
|
Activate();
|
||||||
|
|
||||||
|
flyoutContentControl.ShowFlyout(flyoutPlacement);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnFlyoutContentPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
|
||||||
|
{
|
||||||
|
var sender = dependencyObject as NotificationFlyoutXamlHost;
|
||||||
|
sender?.OnFlyoutContentPropertyChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
private NotificationFlyoutPresenter GetNotificationFlyoutPresenter()
|
||||||
|
{
|
||||||
|
return _host.GetUwpInternalObject() as NotificationFlyoutPresenter;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnFlyoutContentPropertyChanged()
|
||||||
|
{
|
||||||
|
var flyoutContentControl = GetNotificationFlyoutPresenter();
|
||||||
|
if (flyoutContentControl != null)
|
||||||
|
{
|
||||||
|
flyoutContentControl.Content = FlyoutContent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnIconInvoked(object sender, NotificationIconInvokedEventArgs args)
|
||||||
|
{
|
||||||
|
ShowFlyout();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnLoaded(object sender, RoutedEventArgs args)
|
||||||
|
{
|
||||||
|
PrepareNotificationIcon();
|
||||||
|
PrepareTaskbar();
|
||||||
|
|
||||||
|
UpdateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTaskbarChanged(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
_taskbarChanged = true;
|
||||||
|
|
||||||
|
var taskbarState = _taskbarHelper.GetCurrentState();
|
||||||
|
Left = taskbarState.Screen.WorkingArea.Left;
|
||||||
|
Top = taskbarState.Screen.WorkingArea.Top;
|
||||||
|
|
||||||
|
UpdateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrepareDefaultWindow()
|
||||||
|
{
|
||||||
|
ShowInTaskbar = false;
|
||||||
|
ShowActivated = false;
|
||||||
|
WindowStyle = WindowStyle.None;
|
||||||
|
ResizeMode = ResizeMode.NoResize;
|
||||||
|
AllowsTransparency = true;
|
||||||
|
Height = 0;
|
||||||
|
Width = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrepareNotificationIcon()
|
||||||
|
{
|
||||||
|
_notificationIconHelper = NotificationIconHelper.Create(this);
|
||||||
|
_notificationIconHelper.IconInvoked += OnIconInvoked;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrepareTaskbar()
|
||||||
|
{
|
||||||
|
_taskbarHelper = TaskbarHelper.Create(this);
|
||||||
|
_taskbarHelper.TaskbarChanged += OnTaskbarChanged;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrepareWindowsXamlHost()
|
||||||
|
{
|
||||||
|
_host = new WindowsXamlHost
|
||||||
|
{
|
||||||
|
InitialTypeName = typeof(NotificationFlyoutPresenter).FullName
|
||||||
|
};
|
||||||
|
|
||||||
|
_host.Height = 0;
|
||||||
|
_host.Width = 0;
|
||||||
|
|
||||||
|
Content = _host;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UpdateWindow()
|
||||||
|
{
|
||||||
|
var taskbarState = _taskbarHelper.GetCurrentState();
|
||||||
|
|
||||||
|
var screen = Screen.FromHandle(this.GetHandle());
|
||||||
|
MaxHeight = screen.Bounds.Height / 2;
|
||||||
|
|
||||||
|
var windowWidth = DesiredSize.Width * this.DpiX();
|
||||||
|
var windowHeight = DesiredSize.Height * this.DpiY();
|
||||||
|
|
||||||
|
var taskbarRect = taskbarState.Rect;
|
||||||
|
switch (taskbarState.Position)
|
||||||
|
{
|
||||||
|
case TaskbarPosition.Left:
|
||||||
|
this.SetWindowPosition(taskbarRect.Bottom - windowHeight, taskbarRect.Right, windowHeight, windowWidth);
|
||||||
|
break;
|
||||||
|
case TaskbarPosition.Top:
|
||||||
|
this.SetWindowPosition(taskbarRect.Bottom, FlowDirection == FlowDirection.RightToLeft ? taskbarRect.Left : taskbarRect.Right - windowWidth, windowHeight, windowWidth);
|
||||||
|
break;
|
||||||
|
case TaskbarPosition.Right:
|
||||||
|
this.SetWindowPosition(taskbarRect.Bottom - windowHeight, taskbarRect.Left - windowWidth, windowHeight, windowWidth);
|
||||||
|
break;
|
||||||
|
case TaskbarPosition.Bottom:
|
||||||
|
this.SetWindowPosition(taskbarRect.Top - windowHeight, FlowDirection == FlowDirection.RightToLeft ? taskbarRect.Left : taskbarRect.Right - windowWidth, windowHeight, windowWidth);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new ArgumentOutOfRangeException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Markup;
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
|
||||||
|
[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "NotificationFlyout.Wpf.UI.Controls")]
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using System;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Extensions
|
||||||
|
{
|
||||||
|
public static class ImageSourceExtensions
|
||||||
|
{
|
||||||
|
public static Icon ConvertToIcon(this ImageSource imageSource, uint dpi)
|
||||||
|
{
|
||||||
|
if (imageSource == null) return null;
|
||||||
|
|
||||||
|
var uri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute);
|
||||||
|
|
||||||
|
var streamResource = Application.GetResourceStream(uri);
|
||||||
|
if (streamResource == null) throw new ArgumentException(nameof(streamResource));
|
||||||
|
|
||||||
|
return new Icon(streamResource.Stream, new System.Drawing.Size(PInvoke.GetSystemMetricsForDpi((int)SystemMetricFlag.SM_CXICON, dpi), PInvoke.GetSystemMetricsForDpi((int)SystemMetricFlag.SM_CYICON, dpi)));
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum SystemMetricFlag : int
|
||||||
|
{
|
||||||
|
SM_CXICON = 11,
|
||||||
|
SM_CYICON = 12,
|
||||||
|
SM_CXSMICON = 49,
|
||||||
|
SM_CYSMICON = 50
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using NotificationFlyout.Wpf.UI.Helpers;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Extensions
|
||||||
|
{
|
||||||
|
public static class OperatingSystemExtensions
|
||||||
|
{
|
||||||
|
public static bool IsGreaterThan(this OperatingSystem operatingSystem, OperatingSystemVersion version)
|
||||||
|
{
|
||||||
|
return operatingSystem.Version.Build > (int)version;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public enum OperatingSystemVersion : int
|
||||||
|
{
|
||||||
|
Windows10 = 10240,
|
||||||
|
Windows10_1511 = 10586,
|
||||||
|
Windows10_1607 = 14393,
|
||||||
|
Windows10_1703 = 15063,
|
||||||
|
Windows10_1709 = 16299,
|
||||||
|
Windows10_1803 = 17134,
|
||||||
|
Windows10_1809 = 17763,
|
||||||
|
Windows10_1903 = 18362
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Extensions
|
||||||
|
{
|
||||||
|
internal static class RECTExtensions
|
||||||
|
{
|
||||||
|
internal static Rect ToRect(this RECT rect)
|
||||||
|
{
|
||||||
|
if (rect.right - rect.left < 0 || rect.bottom - rect.top < 0) return new Rect(rect.left, rect.top, 0, 0);
|
||||||
|
|
||||||
|
return new Rect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
using Microsoft.Win32;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Extensions
|
||||||
|
{
|
||||||
|
public static class RegistryKeyExtensions
|
||||||
|
{
|
||||||
|
public static T GetValue<T>(this RegistryKey self, string valueName, T defaultValue)
|
||||||
|
{
|
||||||
|
return self.GetValue(valueName, defaultValue) is T t ? t : defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Extensions
|
||||||
|
{
|
||||||
|
public static class VisualExtensions
|
||||||
|
{
|
||||||
|
private static Matrix GetDpi(this Visual visual)
|
||||||
|
{
|
||||||
|
var source = PresentationSource.FromVisual(visual);
|
||||||
|
if (source?.CompositionTarget != null) return (Matrix)source?.CompositionTarget.TransformToDevice;
|
||||||
|
|
||||||
|
return default;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double DpiY(this Visual visual)
|
||||||
|
{
|
||||||
|
return GetDpi(visual).M22;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double DpiX(this Visual visual)
|
||||||
|
{
|
||||||
|
return GetDpi(visual).M11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool TryGetTransformToDevice(this Visual visual, out Matrix value)
|
||||||
|
{
|
||||||
|
var presentationSource = PresentationSource.FromVisual(visual);
|
||||||
|
if (presentationSource != null)
|
||||||
|
{
|
||||||
|
value = presentationSource.CompositionTarget.TransformToDevice;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
value = default;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using System;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Interop;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Extensions
|
||||||
|
{
|
||||||
|
public static class WindowExtensions
|
||||||
|
{
|
||||||
|
[Flags]
|
||||||
|
private enum WindowFlag : uint
|
||||||
|
{
|
||||||
|
SWP_NOSIZE = 0x0001,
|
||||||
|
SWP_NOMOVE = 0x0002,
|
||||||
|
SWP_NOZORDER = 0x0004,
|
||||||
|
SWP_NOACTIVATE = 0x0010,
|
||||||
|
WS_EX_NOACTIVATE = 0x08000000,
|
||||||
|
SWP_SHOWWINDOW = 0x0040
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SetWindowPosition(this Window window, double top, double left, double height, double width)
|
||||||
|
{
|
||||||
|
PInvoke.SetWindowPos((HWND)window.GetHandle(), (HWND)IntPtr.Zero, (int)left, (int)top, (int)width, (int)height, (uint)WindowFlag.SWP_NOSIZE | (uint)WindowFlag.SWP_NOZORDER | (uint)WindowFlag.SWP_NOACTIVATE);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SetTopAll(this Window window)
|
||||||
|
{
|
||||||
|
PInvoke.SetWindowPos((HWND)window.GetHandle(), (HWND)new IntPtr(-1), 0, 0, 0, 0, (uint)WindowFlag.SWP_NOMOVE | (uint)WindowFlag.SWP_NOSIZE | (uint)WindowFlag.WS_EX_NOACTIVATE);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IntPtr GetHandle(this Window window)
|
||||||
|
{
|
||||||
|
var helper = new WindowInteropHelper(window);
|
||||||
|
return helper.Handle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,209 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using NotificationFlyout.Wpf.UI.Extensions;
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Interop;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public class NotificationIconHelper : IDisposable
|
||||||
|
{
|
||||||
|
private const int CallbackMessage = 0x400;
|
||||||
|
private const uint IconVersion = 0x4;
|
||||||
|
|
||||||
|
private const int WM_LBUTTONUP = 0x0202;
|
||||||
|
private const int WM_MBUTTONUP = 0x0208;
|
||||||
|
private const int WM_RBUTTONUP = 0x0205;
|
||||||
|
private readonly object _lock = new();
|
||||||
|
private readonly IntPtr _windowHandle;
|
||||||
|
private bool _isDisposed;
|
||||||
|
private NotifyIconData _notifyIconData;
|
||||||
|
|
||||||
|
private NotificationIconHelper(Window window)
|
||||||
|
{
|
||||||
|
_windowHandle = window.GetHandle();
|
||||||
|
|
||||||
|
var source = HwndSource.FromHwnd(_windowHandle);
|
||||||
|
source.AddHook(new HwndSourceHook(WndProc));
|
||||||
|
|
||||||
|
CreateNotificationIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
~NotificationIconHelper()
|
||||||
|
{
|
||||||
|
Dispose(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public event EventHandler<NotificationIconInvokedEventArgs> IconInvoked;
|
||||||
|
|
||||||
|
private enum NotifyIconBalloonType
|
||||||
|
{
|
||||||
|
None = 0x00,
|
||||||
|
Info = 0x01,
|
||||||
|
Warning = 0x02,
|
||||||
|
Error = 0x03,
|
||||||
|
User = 0x04,
|
||||||
|
NoSound = 0x10,
|
||||||
|
LargeIcon = 0x20,
|
||||||
|
RespectQuietTime = 0x80
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum NotifyIconCommand : uint
|
||||||
|
{
|
||||||
|
Add = 0x0,
|
||||||
|
Delete = 0x2,
|
||||||
|
Modify = 0x1,
|
||||||
|
SetVersion = 0x4
|
||||||
|
}
|
||||||
|
|
||||||
|
[Flags]
|
||||||
|
private enum NotifyIconDataMember : uint
|
||||||
|
{
|
||||||
|
Message = 0x01,
|
||||||
|
Icon = 0x02,
|
||||||
|
Tip = 0x04,
|
||||||
|
State = 0x08,
|
||||||
|
Info = 0x10,
|
||||||
|
Realtime = 0x40,
|
||||||
|
UseLegacyToolTips = 0x80
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum NotifyIconState : uint
|
||||||
|
{
|
||||||
|
Visible = 0x00,
|
||||||
|
Hidden = 0x01
|
||||||
|
}
|
||||||
|
|
||||||
|
public static NotificationIconHelper Create(Window window)
|
||||||
|
{
|
||||||
|
return new NotificationIconHelper(window);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
Dispose(true);
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetIcon(IntPtr iconHandle)
|
||||||
|
{
|
||||||
|
lock (_lock)
|
||||||
|
{
|
||||||
|
_notifyIconData.IconHandle = iconHandle;
|
||||||
|
WriteNotifyIconData(NotifyIconCommand.Modify, NotifyIconDataMember.Icon);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("shell32.dll", SetLastError = true)]
|
||||||
|
private static extern int Shell_NotifyIcon(NotifyIconCommand notifyCommand, ref NotifyIconData notifyIconData);
|
||||||
|
|
||||||
|
private void CreateNotificationIcon()
|
||||||
|
{
|
||||||
|
lock (_lock)
|
||||||
|
{
|
||||||
|
_notifyIconData = new NotifyIconData();
|
||||||
|
|
||||||
|
_notifyIconData.cbSize = (uint)Marshal.SizeOf(_notifyIconData);
|
||||||
|
_notifyIconData.WindowHandle = _windowHandle;
|
||||||
|
_notifyIconData.TaskbarIconId = 0x0;
|
||||||
|
_notifyIconData.CallbackMessageId = CallbackMessage;
|
||||||
|
_notifyIconData.VersionOrTimeout = IconVersion;
|
||||||
|
|
||||||
|
_notifyIconData.IconHandle = IntPtr.Zero;
|
||||||
|
|
||||||
|
_notifyIconData.IconState = NotifyIconState.Hidden;
|
||||||
|
_notifyIconData.StateMask = NotifyIconState.Hidden;
|
||||||
|
|
||||||
|
WriteNotifyIconData(NotifyIconCommand.Add, NotifyIconDataMember.Message | NotifyIconDataMember.Icon | NotifyIconDataMember.Tip);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (_isDisposed || !disposing) return;
|
||||||
|
|
||||||
|
lock (_lock)
|
||||||
|
{
|
||||||
|
_isDisposed = true;
|
||||||
|
RemoveNotificationIcon();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RemoveNotificationIcon() => WriteNotifyIconData(NotifyIconCommand.Delete, NotifyIconDataMember.Message);
|
||||||
|
|
||||||
|
private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
|
||||||
|
{
|
||||||
|
if (msg == CallbackMessage)
|
||||||
|
{
|
||||||
|
var mouseButton = MouseButton.Left;
|
||||||
|
var isInvoked = false;
|
||||||
|
|
||||||
|
switch ((uint)lParam)
|
||||||
|
{
|
||||||
|
case WM_LBUTTONUP:
|
||||||
|
isInvoked = true;
|
||||||
|
mouseButton = MouseButton.Left;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case WM_MBUTTONUP:
|
||||||
|
isInvoked = true;
|
||||||
|
mouseButton = MouseButton.Middle;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case WM_RBUTTONUP:
|
||||||
|
isInvoked = true;
|
||||||
|
mouseButton = MouseButton.Right;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isInvoked)
|
||||||
|
{
|
||||||
|
IconInvoked?.Invoke(this, new NotificationIconInvokedEventArgs { MouseButton = mouseButton });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return (IntPtr)(int)PInvoke.DefWindowProc((HWND)hwnd, (uint)msg, (WPARAM)(UIntPtr)(uint)wParam, (LPARAM)lParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void WriteNotifyIconData(NotifyIconCommand command, NotifyIconDataMember flags)
|
||||||
|
{
|
||||||
|
_notifyIconData.ValidMembers = flags;
|
||||||
|
lock (_lock)
|
||||||
|
{
|
||||||
|
Shell_NotifyIcon(command, ref _notifyIconData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
||||||
|
private struct NotifyIconData
|
||||||
|
{
|
||||||
|
public uint cbSize;
|
||||||
|
public IntPtr WindowHandle;
|
||||||
|
public uint TaskbarIconId;
|
||||||
|
public NotifyIconDataMember ValidMembers;
|
||||||
|
public uint CallbackMessageId;
|
||||||
|
public IntPtr IconHandle;
|
||||||
|
|
||||||
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
||||||
|
public string ToolTipText;
|
||||||
|
|
||||||
|
public NotifyIconState IconState;
|
||||||
|
public NotifyIconState StateMask;
|
||||||
|
|
||||||
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
|
||||||
|
public string BalloonText;
|
||||||
|
|
||||||
|
public uint VersionOrTimeout;
|
||||||
|
|
||||||
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
|
||||||
|
public string BalloonTitle;
|
||||||
|
|
||||||
|
public NotifyIconBalloonType BalloonFlags;
|
||||||
|
public Guid TaskbarIconGuid;
|
||||||
|
public IntPtr CustomBalloonIconHandle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
using System.Windows.Input;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public class NotificationIconInvokedEventArgs : EventArgs
|
||||||
|
{
|
||||||
|
public MouseButton MouseButton { get; internal set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public static class SystemInformationHelper
|
||||||
|
{
|
||||||
|
private const int SM_CXSCREEN = 0;
|
||||||
|
|
||||||
|
private const int SM_CYSCREEN = 1;
|
||||||
|
|
||||||
|
private const int SPI_GETWORKAREA = 48;
|
||||||
|
|
||||||
|
public static Rect VirtualScreen => GetVirtualScreen();
|
||||||
|
|
||||||
|
public static Rect WorkingArea => GetWorkingArea();
|
||||||
|
|
||||||
|
public static int GetCurrentDpi()
|
||||||
|
{
|
||||||
|
return (int)typeof(SystemParameters).GetProperty("Dpi", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double GetCurrentDpiScaleFactor()
|
||||||
|
{
|
||||||
|
return (double)GetCurrentDpi() / 96;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Rect GetVirtualScreen()
|
||||||
|
{
|
||||||
|
var size = new Size(PInvoke.GetSystemMetrics(SM_CXSCREEN), PInvoke.GetSystemMetrics(SM_CYSCREEN));
|
||||||
|
return new Rect(0, 0, size.Width, size.Height);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Rect GetWorkingArea()
|
||||||
|
{
|
||||||
|
var rect = new RECT();
|
||||||
|
|
||||||
|
SystemParametersInfo(SPI_GETWORKAREA, 0, ref rect, 0);
|
||||||
|
return new Rect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("user32.dll", CharSet = CharSet.Auto)]
|
||||||
|
private static extern bool SystemParametersInfo(int nAction, int nParam, ref RECT rc, int nUpdate);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
using Microsoft.Win32;
|
||||||
|
using NotificationFlyout.Wpf.UI.Extensions;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public static class SystemSettingsHelper
|
||||||
|
{
|
||||||
|
private static readonly string PersonalizeKey = @"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize";
|
||||||
|
|
||||||
|
public static SystemTheme DefaultSystemTheme => GetDefaultSystemTheme();
|
||||||
|
|
||||||
|
private static SystemTheme GetDefaultSystemTheme()
|
||||||
|
{
|
||||||
|
return Environment.OSVersion.IsGreaterThan(OperatingSystemVersion.Windows10_1809) &&
|
||||||
|
ReadDword(PersonalizeKey, "SystemUsesLightTheme")
|
||||||
|
? SystemTheme.Light
|
||||||
|
: SystemTheme.Dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static bool ReadDword(string key, string valueName, int defaultValue = 0)
|
||||||
|
{
|
||||||
|
using var baseKey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64);
|
||||||
|
using var subKey = baseKey.OpenSubKey(key);
|
||||||
|
return subKey.GetValue<int>(valueName, defaultValue) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool IsTransparencyEnabled => ReadDword(PersonalizeKey, "EnableTransparency");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public enum SystemTheme
|
||||||
|
{
|
||||||
|
Dark,
|
||||||
|
Light
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using NotificationFlyout.Wpf.UI.Extensions;
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Interop;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public class TaskbarHelper
|
||||||
|
{
|
||||||
|
private const string ShellTrayHandleName = "Shell_TrayWnd";
|
||||||
|
|
||||||
|
private const int SPI_SETWORKAREA = 0x002F;
|
||||||
|
|
||||||
|
private const int WSETTINGCHANGE = 0x001A;
|
||||||
|
|
||||||
|
private static readonly uint WTASKBARCREATED = PInvoke.RegisterWindowMessage("TaskbarCreated");
|
||||||
|
|
||||||
|
private TaskbarHelper(Window window)
|
||||||
|
{
|
||||||
|
var handle = window.GetHandle();
|
||||||
|
|
||||||
|
var source = HwndSource.FromHwnd(handle);
|
||||||
|
source.AddHook(new HwndSourceHook(WndProc));
|
||||||
|
}
|
||||||
|
|
||||||
|
public event EventHandler TaskbarChanged;
|
||||||
|
|
||||||
|
private enum AppBarEdge : uint
|
||||||
|
{
|
||||||
|
Left = 0,
|
||||||
|
Top = 1,
|
||||||
|
Right = 2,
|
||||||
|
Bottom = 3
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum AppBarMessage : uint
|
||||||
|
{
|
||||||
|
New = 0x00000000,
|
||||||
|
Remove = 0x00000001,
|
||||||
|
QueryPos = 0x00000002,
|
||||||
|
SetPos = 0x00000003,
|
||||||
|
GetState = 0x00000004,
|
||||||
|
GetTaskbarPos = 0x00000005,
|
||||||
|
Activate = 0x00000006,
|
||||||
|
GetAutoHideBar = 0x00000007,
|
||||||
|
SetAutoHideBar = 0x00000008,
|
||||||
|
WindowPosChanged = 0x00000009,
|
||||||
|
SetState = 0x0000000A,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static TaskbarHelper Create(Window window)
|
||||||
|
{
|
||||||
|
return new TaskbarHelper(window);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskbarState GetCurrentState()
|
||||||
|
{
|
||||||
|
var handle = GetSystemTrayHandle();
|
||||||
|
var state = new TaskbarState
|
||||||
|
{
|
||||||
|
Screen = Screen.FromHandle(handle)
|
||||||
|
};
|
||||||
|
|
||||||
|
var appBarData = GetAppBarData(handle);
|
||||||
|
GetAppBarPosition(ref appBarData);
|
||||||
|
|
||||||
|
state.Rect = appBarData.rect.ToRect();
|
||||||
|
state.Position = (TaskbarPosition)appBarData.uEdge;
|
||||||
|
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static IntPtr GetSystemTrayHandle()
|
||||||
|
{
|
||||||
|
return WindowHelper.GetHandle(ShellTrayHandleName);
|
||||||
|
}
|
||||||
|
|
||||||
|
private AppBarData GetAppBarData(IntPtr handle)
|
||||||
|
{
|
||||||
|
return new AppBarData
|
||||||
|
{
|
||||||
|
cbSize = (uint)Marshal.SizeOf(typeof(AppBarData)),
|
||||||
|
hWnd = handle
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
private struct AppBarData
|
||||||
|
{
|
||||||
|
public uint cbSize;
|
||||||
|
public IntPtr hWnd;
|
||||||
|
public uint uCallbackMessage;
|
||||||
|
public AppBarEdge uEdge;
|
||||||
|
public RECT rect;
|
||||||
|
public int lParam;
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("shell32.dll", SetLastError = true)]
|
||||||
|
private static extern IntPtr SHAppBarMessage(AppBarMessage dwMessage, ref AppBarData pData);
|
||||||
|
|
||||||
|
private void GetAppBarPosition(ref AppBarData appBarData)
|
||||||
|
{
|
||||||
|
SHAppBarMessage(AppBarMessage.GetTaskbarPos, ref appBarData);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
|
||||||
|
{
|
||||||
|
if (msg == WTASKBARCREATED || msg == WSETTINGCHANGE && (int)wParam == SPI_SETWORKAREA)
|
||||||
|
{
|
||||||
|
TaskbarChanged?.Invoke(this, EventArgs.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (IntPtr)(int)PInvoke.DefWindowProc((HWND)hwnd, (uint)msg, (WPARAM)(UIntPtr)(uint)wParam, (LPARAM)lParam);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
namespace NotificationFlyout.Wpf.UI
|
||||||
|
{
|
||||||
|
|
||||||
|
public enum TaskbarPosition
|
||||||
|
{
|
||||||
|
Left = 0,
|
||||||
|
Top = 1,
|
||||||
|
Right = 2,
|
||||||
|
Bottom = 3
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI
|
||||||
|
{
|
||||||
|
public struct TaskbarState
|
||||||
|
{
|
||||||
|
public TaskbarPosition Position;
|
||||||
|
public Rect Rect;
|
||||||
|
public Screen Screen;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI.Helpers
|
||||||
|
{
|
||||||
|
public class WindowHelper
|
||||||
|
{
|
||||||
|
public static IntPtr GetHandle(string windowName)
|
||||||
|
{
|
||||||
|
return PInvoke.FindWindow(windowName, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static uint GetDpi(IntPtr handle)
|
||||||
|
{
|
||||||
|
return PInvoke.GetDpiForWindow((HWND)handle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
Shell_NotifyIcon
|
||||||
|
GetDpiForWindow
|
||||||
|
FindWindow
|
||||||
|
GetSystemMetricsForDpi
|
||||||
|
DefWindowProcW
|
||||||
|
GetSystemMetrics
|
||||||
|
MonitorFromWindow
|
||||||
|
RegisterWindowMessage
|
||||||
|
FindWindow
|
||||||
|
SHAppBarMessage
|
||||||
|
SetWindowPos
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
<LangVersion>9.0</LangVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.1.319-beta">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
using Microsoft.Windows.Sdk;
|
||||||
|
using NotificationFlyout.Wpf.UI.Helpers;
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.Wpf.UI
|
||||||
|
{
|
||||||
|
public class Screen
|
||||||
|
{
|
||||||
|
private const int CCHDEVICENAME = 32;
|
||||||
|
private const int PRIMARY_MONITOR = unchecked((int)0xBAADF00D);
|
||||||
|
private const int SM_CMONITORS = 80;
|
||||||
|
private static readonly bool _multiMonitorSupport;
|
||||||
|
|
||||||
|
private readonly IntPtr _monitorHandle;
|
||||||
|
|
||||||
|
static Screen()
|
||||||
|
{
|
||||||
|
_multiMonitorSupport = PInvoke.GetSystemMetrics(SM_CMONITORS) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal Screen(IntPtr monitorHandle)
|
||||||
|
{
|
||||||
|
if (!_multiMonitorSupport || monitorHandle == (IntPtr)PRIMARY_MONITOR)
|
||||||
|
{
|
||||||
|
Bounds = SystemInformationHelper.VirtualScreen;
|
||||||
|
Primary = true;
|
||||||
|
DeviceName = "DISPLAY";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var monitorData = GetMonitorData(monitorHandle);
|
||||||
|
|
||||||
|
Bounds = new Rect(monitorData.MonitorRect.left, monitorData.MonitorRect.top, monitorData.MonitorRect.right - monitorData.MonitorRect.left, monitorData.MonitorRect.bottom - monitorData.MonitorRect.top);
|
||||||
|
Primary = (monitorData.Flags & (int)MonitorFlag.MONITOR_DEFAULTTOPRIMARY) != 0;
|
||||||
|
DeviceName = monitorData.DeviceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
_monitorHandle = monitorHandle;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum MonitorFlag : uint
|
||||||
|
{
|
||||||
|
MONITOR_DEFAULTTONULL = 0,
|
||||||
|
MONITOR_DEFAULTTOPRIMARY = 1,
|
||||||
|
MONITOR_DEFAULTTONEAREST = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
public Rect Bounds { get; }
|
||||||
|
|
||||||
|
public string DeviceName { get; }
|
||||||
|
|
||||||
|
public bool Primary { get; }
|
||||||
|
|
||||||
|
public Rect WorkingArea => GetWorkingArea();
|
||||||
|
|
||||||
|
public static Screen FromHandle(IntPtr handle)
|
||||||
|
{
|
||||||
|
return _multiMonitorSupport ? new Screen(PInvoke.MonitorFromWindow((HWND)handle, (uint)MonitorFlag.MONITOR_DEFAULTTONEAREST)) : new Screen((IntPtr)PRIMARY_MONITOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool Equals(object obj)
|
||||||
|
{
|
||||||
|
if (obj is Screen monitor)
|
||||||
|
{
|
||||||
|
if (_monitorHandle == monitor._monitorHandle)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
return (int)_monitorHandle;
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("user32.dll", EntryPoint = "GetMonitorInfo", CharSet = CharSet.Auto, SetLastError = true)]
|
||||||
|
private static extern bool GetMonitorInfoEx(IntPtr hMonitor, ref MonitorData lpmi);
|
||||||
|
|
||||||
|
private MonitorData GetMonitorData(IntPtr monitorHandle)
|
||||||
|
{
|
||||||
|
var monitorData = new MonitorData();
|
||||||
|
monitorData.Size = Marshal.SizeOf(monitorData);
|
||||||
|
GetMonitorInfoEx(monitorHandle, ref monitorData);
|
||||||
|
|
||||||
|
return monitorData;
|
||||||
|
}
|
||||||
|
private Rect GetWorkingArea()
|
||||||
|
{
|
||||||
|
if (!_multiMonitorSupport || _monitorHandle == (IntPtr)PRIMARY_MONITOR)
|
||||||
|
{
|
||||||
|
return SystemInformationHelper.WorkingArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
var monitorData = GetMonitorData(_monitorHandle);
|
||||||
|
return new Rect(monitorData.WorkAreaRect.left, monitorData.WorkAreaRect.top, monitorData.WorkAreaRect.right - monitorData.WorkAreaRect.left, monitorData.WorkAreaRect.bottom - monitorData.WorkAreaRect.top);
|
||||||
|
}
|
||||||
|
|
||||||
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
|
||||||
|
private struct MonitorData
|
||||||
|
{
|
||||||
|
public int Size;
|
||||||
|
public RECT MonitorRect;
|
||||||
|
public RECT WorkAreaRect;
|
||||||
|
public uint Flags;
|
||||||
|
|
||||||
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHDEVICENAME)]
|
||||||
|
public string DeviceName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<xamlhost:XamlApplication
|
||||||
|
x:Class="NotificationFlyout.XamlHost.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:xamlhost="using:Microsoft.Toolkit.Win32.UI.XamlHost">
|
||||||
|
</xamlhost:XamlApplication>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
using Microsoft.Toolkit.Win32.UI.XamlHost;
|
||||||
|
|
||||||
|
namespace NotificationFlyout.XamlHost
|
||||||
|
{
|
||||||
|
public sealed partial class App : XamlApplication
|
||||||
|
{
|
||||||
|
public App()
|
||||||
|
{
|
||||||
|
Initialize();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,170 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
|
<ProjectGuid>{95D6E127-BC04-4591-ACFF-FB35BBB64884}</ProjectGuid>
|
||||||
|
<OutputType>AppContainerExe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>NotificationFlyout.XamlHost</RootNamespace>
|
||||||
|
<AssemblyName>NotificationFlyout.XamlHost</AssemblyName>
|
||||||
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
|
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||||
|
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.19041.0</TargetPlatformVersion>
|
||||||
|
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||||||
|
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
|
||||||
|
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<OutputPath>bin\x86\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||||
|
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
|
||||||
|
<OutputPath>bin\ARM64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="App.xaml.cs">
|
||||||
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</AppxManifest>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Properties\Default.rd.xml" />
|
||||||
|
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
||||||
|
<Content Include="Assets\SplashScreen.scale-200.png" />
|
||||||
|
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
||||||
|
<Content Include="Assets\Square44x44Logo.scale-200.png" />
|
||||||
|
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
||||||
|
<Content Include="Assets\StoreLogo.png" />
|
||||||
|
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Include="App.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</ApplicationDefinition>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||||
|
<Version>6.2.11</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Microsoft.Toolkit.Win32.UI.XamlApplication">
|
||||||
|
<Version>6.1.2</Version>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj">
|
||||||
|
<Project>{9987b132-e42c-401a-9ad5-e62529faca40}</Project>
|
||||||
|
<Name>NotificationFlyout.Uwp.UI.Controls</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||||
|
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<Package
|
||||||
|
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||||
|
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||||
|
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||||
|
IgnorableNamespaces="uap mp">
|
||||||
|
|
||||||
|
<Identity
|
||||||
|
Name="1369b19a-fbc3-47ce-b17f-ac8dd9370875"
|
||||||
|
Publisher="CN=dan"
|
||||||
|
Version="1.0.0.0" />
|
||||||
|
|
||||||
|
<mp:PhoneIdentity PhoneProductId="1369b19a-fbc3-47ce-b17f-ac8dd9370875" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>NotificationFlyout.XamlHost</DisplayName>
|
||||||
|
<PublisherDisplayName>dan</PublisherDisplayName>
|
||||||
|
<Logo>Assets\StoreLogo.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
|
<Dependencies>
|
||||||
|
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||||
|
</Dependencies>
|
||||||
|
|
||||||
|
<Resources>
|
||||||
|
<Resource Language="x-generate"/>
|
||||||
|
</Resources>
|
||||||
|
|
||||||
|
<Applications>
|
||||||
|
<Application Id="App"
|
||||||
|
Executable="$targetnametoken$.exe"
|
||||||
|
EntryPoint="NotificationFlyout.XamlHost.App">
|
||||||
|
<uap:VisualElements
|
||||||
|
DisplayName="NotificationFlyout.XamlHost"
|
||||||
|
Square150x150Logo="Assets\Square150x150Logo.png"
|
||||||
|
Square44x44Logo="Assets\Square44x44Logo.png"
|
||||||
|
Description="NotificationFlyout.XamlHost"
|
||||||
|
BackgroundColor="transparent">
|
||||||
|
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
|
||||||
|
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||||
|
</uap:VisualElements>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
|
||||||
|
<Capabilities>
|
||||||
|
<Capability Name="internetClient" />
|
||||||
|
</Capabilities>
|
||||||
|
</Package>
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
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.XamlHost")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("NotificationFlyout.XamlHost")]
|
||||||
|
[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)]
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<!--
|
||||||
|
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
||||||
|
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
||||||
|
optimizer.
|
||||||
|
|
||||||
|
Runtime Directives are documented at https://go.microsoft.com/fwlink/?LinkID=391919
|
||||||
|
|
||||||
|
To fully enable reflection for App1.MyClass and all of its public/private members
|
||||||
|
<Type Name="App1.MyClass" Dynamic="Required All" />
|
||||||
|
|
||||||
|
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
||||||
|
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||||
|
|
||||||
|
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
||||||
|
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
|
||||||
|
-->
|
||||||
|
|
||||||
|
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||||
|
<Application>
|
||||||
|
<!--
|
||||||
|
An Assembly element with Name="*Application*" applies to all assemblies in
|
||||||
|
the application package. The asterisks are not wildcards.
|
||||||
|
-->
|
||||||
|
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||||
|
|
||||||
|
<!-- Add your application specific runtime directives here. -->
|
||||||
|
</Application>
|
||||||
|
</Directives>
|
||||||
@@ -0,0 +1,219 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.30914.41
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotificationFlyout.Foundation", "NotificationFlyout.Foundation\NotificationFlyout.Foundation.csproj", "{8CF304C1-38D4-4D16-B99C-71353E8DD477}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotificationFlyout.XamlHost", "NotificationFlyout.XamlHost\NotificationFlyout.XamlHost.csproj", "{95D6E127-BC04-4591-ACFF-FB35BBB64884}"
|
||||||
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotificationFlyout.Tray", "NotificationFlyout.Tray\NotificationFlyout.Tray.csproj", "{B5B09576-6447-4146-B544-FB6000587D8B}"
|
||||||
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotificationFlyout.Wpf.UI.Controls", "NotificationFlyout.Wpf.UI.Controls\NotificationFlyout.Wpf.UI.Controls.csproj", "{0A782234-DC9F-4C4A-8820-FC640B03D233}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotificationFlyout.Uwp.UI.Controls", "NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj", "{9987B132-E42C-401A-9AD5-E62529FACA40}"
|
||||||
|
EndProject
|
||||||
|
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "NotificationFlyout.Package", "NotificationFlyout.Package\NotificationFlyout.Package.wapproj", "{46FF88D3-C2C7-419B-94F6-1AC01307C31A}"
|
||||||
|
EndProject
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotificationFlyout.Wpf.UI", "NotificationFlyout.Wpf.UI\NotificationFlyout.Wpf.UI.csproj", "{29430194-7EDE-4C33-AF59-CE121F48F66E}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotificationFlyout.Sample", "NotificationFlyout.Sample\NotificationFlyout.Sample.csproj", "{675B9345-F416-44EF-8154-B7F6943877FA}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Debug|ARM = Debug|ARM
|
||||||
|
Debug|ARM64 = Debug|ARM64
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
Release|ARM = Release|ARM
|
||||||
|
Release|ARM64 = Release|ARM64
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|ARM64.Build.0 = Debug|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|x86.ActiveCfg = Debug|x64
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Debug|x86.Build.0 = Debug|x64
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|ARM.Build.0 = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|ARM64.ActiveCfg = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|ARM64.Build.0 = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
|
{8CF304C1-38D4-4D16-B99C-71353E8DD477}.Release|x86.Build.0 = Release|Any CPU
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|Any CPU.ActiveCfg = Debug|x86
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|x64.Deploy.0 = Debug|x64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Debug|x86.Deploy.0 = Debug|x86
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|Any CPU.ActiveCfg = Release|x86
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|ARM.Deploy.0 = Release|ARM
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|ARM64.Build.0 = Release|ARM64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|ARM64.Deploy.0 = Release|ARM64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|x64.Build.0 = Release|x64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|x64.Deploy.0 = Release|x64
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|x86.Build.0 = Release|x86
|
||||||
|
{95D6E127-BC04-4591-ACFF-FB35BBB64884}.Release|x86.Deploy.0 = Release|x86
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|ARM64.Build.0 = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|ARM.Build.0 = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|ARM64.ActiveCfg = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|ARM64.Build.0 = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
|
{B5B09576-6447-4146-B544-FB6000587D8B}.Release|x86.Build.0 = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|ARM64.Build.0 = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|ARM.Build.0 = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|ARM64.ActiveCfg = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|ARM64.Build.0 = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
|
{0A782234-DC9F-4C4A-8820-FC640B03D233}.Release|x86.Build.0 = Release|Any CPU
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|ARM64.Build.0 = Release|ARM64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|x64.Build.0 = Release|x64
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{9987B132-E42C-401A-9AD5-E62529FACA40}.Release|x86.Build.0 = Release|x86
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|x64.Deploy.0 = Debug|x64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Debug|x86.Deploy.0 = Debug|x86
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|ARM.Deploy.0 = Release|ARM
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|ARM64.Build.0 = Release|ARM64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|ARM64.Deploy.0 = Release|ARM64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|x64.Build.0 = Release|x64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|x64.Deploy.0 = Release|x64
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|x86.Build.0 = Release|x86
|
||||||
|
{46FF88D3-C2C7-419B-94F6-1AC01307C31A}.Release|x86.Deploy.0 = Release|x86
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|ARM64.Build.0 = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|ARM.Build.0 = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|ARM64.ActiveCfg = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|ARM64.Build.0 = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
|
{29430194-7EDE-4C33-AF59-CE121F48F66E}.Release|x86.Build.0 = Release|Any CPU
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|ARM64.Build.0 = Release|ARM64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|x64.Build.0 = Release|x64
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{675B9345-F416-44EF-8154-B7F6943877FA}.Release|x86.Build.0 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {EDFFB261-AD00-4C68-BF55-D5CED5BE0039}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
<UserControl
|
||||||
|
x:Class="NotificationFlyout.MyUserControl1"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:NotificationFlyout"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="300"
|
||||||
|
d:DesignWidth="400">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
|
||||||
|
// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236
|
||||||
|
|
||||||
|
namespace NotificationFlyout
|
||||||
|
{
|
||||||
|
public sealed partial class MyUserControl1 : UserControl
|
||||||
|
{
|
||||||
|
public MyUserControl1()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{08C84B28-D5A2-4C77-BA72-5B2B4674DEFC}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>NotificationFlyout</RootNamespace>
|
||||||
|
<AssemblyName>NotificationFlyout</AssemblyName>
|
||||||
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
|
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||||
|
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.19041.0</TargetPlatformVersion>
|
||||||
|
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||||||
|
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<OutputPath>bin\x86\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
|
||||||
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
|
<OutputPath>bin\ARM64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="MyUserControl1.xaml.cs">
|
||||||
|
<DependentUpon>MyUserControl1.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<EmbeddedResource Include="Properties\NotificationFlyout.rd.xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||||
|
<Version>6.2.11</Version>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\NotificationFlyout.Uwp.UI.Controls\NotificationFlyout.Uwp.UI.Controls.csproj">
|
||||||
|
<Project>{9987b132-e42c-401a-9ad5-e62529faca40}</Project>
|
||||||
|
<Name>NotificationFlyout.Uwp.UI.Controls</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Include="MyUserControl1.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||||
|
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
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")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("NotificationFlyout")]
|
||||||
|
[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)]
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
This file contains Runtime Directives, specifications about types your application accesses
|
||||||
|
through reflection and other dynamic code patterns. Runtime Directives are used to control the
|
||||||
|
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
|
||||||
|
library does not do any reflection, then you generally do not need to edit this file. However,
|
||||||
|
if your library reflects over types, especially types passed to it or derived from its types,
|
||||||
|
then you should write Runtime Directives.
|
||||||
|
|
||||||
|
The most common use of reflection in libraries is to discover information about types passed
|
||||||
|
to the library. Runtime Directives have three ways to express requirements on types passed to
|
||||||
|
your library.
|
||||||
|
|
||||||
|
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
|
||||||
|
Use these directives to reflect over types passed as a parameter.
|
||||||
|
|
||||||
|
2. SubTypes
|
||||||
|
Use a SubTypes directive to reflect over types derived from another type.
|
||||||
|
|
||||||
|
3. AttributeImplies
|
||||||
|
Use an AttributeImplies directive to indicate that your library needs to reflect over
|
||||||
|
types or methods decorated with an attribute.
|
||||||
|
|
||||||
|
For more information on writing Runtime Directives for libraries, please visit
|
||||||
|
https://go.microsoft.com/fwlink/?LinkID=391919
|
||||||
|
-->
|
||||||
|
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||||
|
<Library Name="NotificationFlyout">
|
||||||
|
|
||||||
|
<!-- add directives for your library here -->
|
||||||
|
</Library>
|
||||||
|
</Directives>
|
||||||