Introduced a NotificationFlyoutPresenter to allow you to restyle/retemplate the flyout from within your UWP app
This commit is contained in:
@@ -1,4 +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>
|
||||
<Application
|
||||
x:Class="NotificationFlyout.Sample.Wpf.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" />
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace NotificationFlyout.Tray
|
||||
namespace NotificationFlyout.Sample.Wpf
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
|
||||
+2
-1
@@ -6,8 +6,9 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
<AssetTargetFallback>uap10.0.19041</AssetTargetFallback>
|
||||
<Platforms>AnyCPU;x64</Platforms>
|
||||
<StartupObject>NotificationFlyout.Tray.Program</StartupObject>
|
||||
<StartupObject>NotificationFlyout.Sample.Wpf.Program</StartupObject>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<AssemblyName>NotificationFlyout.Sample.Wpf</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -1,7 +1,6 @@
|
||||
using NotificationFlyout.Tray.Views;
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace NotificationFlyout.Tray
|
||||
namespace NotificationFlyout.Sample.Wpf
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
@@ -9,9 +8,9 @@ namespace NotificationFlyout.Tray
|
||||
public static void Main()
|
||||
{
|
||||
using (new XamlHost.App())
|
||||
{
|
||||
{
|
||||
var app = new App();
|
||||
new Shell();
|
||||
new SampleNotificationFlyout();
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,2 @@
|
||||
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)
|
||||
)]
|
||||
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
|
||||
+4
-6
@@ -1,10 +1,8 @@
|
||||
<NotificationFlyout
|
||||
x:Class="NotificationFlyout.Tray.Views.Shell"
|
||||
x:Class="NotificationFlyout.Sample.Wpf.SampleNotificationFlyout"
|
||||
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>
|
||||
<sample:MyUserControl1 />
|
||||
xmlns:sample="clr-namespace:NotificationFlyout.Sample;assembly=NotificationFlyout.Sample"
|
||||
IconSource="/Assets/Icon.ico">
|
||||
<sample:NotificationFlyoutPresenter />
|
||||
</NotificationFlyout>
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace NotificationFlyout.Sample.Wpf
|
||||
{
|
||||
public partial class SampleNotificationFlyout
|
||||
{
|
||||
public SampleNotificationFlyout()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace NotificationFlyout.Tray.Views
|
||||
{
|
||||
public partial class Shell
|
||||
{
|
||||
public Shell()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user