Move *everything* from setting flyout content and the flyout icons to a UWP control and simplified creation of the wpf host via a NotificationFlyoutApplication where you only need to set the UWP flyout
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
@@ -11,11 +11,6 @@
|
||||
<EnableXBindDiagnostics>false</EnableXBindDiagnostics>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Assets\Icon-Light.ico" />
|
||||
<None Remove="Assets\Icon.ico" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Toolkit.Wpf.UI.XamlHost" Version="6.1.2" />
|
||||
</ItemGroup>
|
||||
@@ -26,10 +21,5 @@
|
||||
<ProjectReference Include="..\..\src\NotificationFlyout.Wpf.UI\NotificationFlyout.Wpf.UI.csproj" />
|
||||
<ProjectReference Include="..\NotificationFlyoutSample\NotificationFlyoutSample.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="Assets\Icon-Light.ico" />
|
||||
<Resource Include="Assets\Icon.ico" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using NotificationFlyout.Wpf.UI.Controls;
|
||||
using System;
|
||||
|
||||
namespace NotificationFlyoutSample.Host
|
||||
{
|
||||
@@ -10,7 +11,10 @@ namespace NotificationFlyoutSample.Host
|
||||
using (new NotificationFlyoutSample.App())
|
||||
{
|
||||
var app = new App();
|
||||
new SampleNotificationFlyout();
|
||||
new NotificationFlyoutApplication
|
||||
{
|
||||
Flyout = new Shell()
|
||||
};
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<NotificationFlyout
|
||||
x:Class="NotificationFlyoutSample.Host.SampleNotificationFlyout"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:uwp="clr-namespace:NotificationFlyoutSample;assembly=NotificationFlyoutSample"
|
||||
IconSource="/Assets/Icon.ico"
|
||||
LightIconSource="/Assets/Icon-Light.ico">
|
||||
<uwp:Shell />
|
||||
</NotificationFlyout>
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace NotificationFlyoutSample.Host
|
||||
{
|
||||
public partial class SampleNotificationFlyout
|
||||
{
|
||||
public SampleNotificationFlyout()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user