Added .NET 5.0 and restructured the repository. (#47)
@@ -7,8 +7,7 @@ trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- develop
|
||||
- release/*
|
||||
- master
|
||||
- feature/*
|
||||
exclude:
|
||||
- gh-pages
|
||||
@@ -32,24 +31,17 @@ stages:
|
||||
versionSpec: '5.5.1'
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Use .NET Core sdk 3.1.6'
|
||||
displayName: 'Use .NET Core sdk 5.0'
|
||||
inputs:
|
||||
packageType: sdk
|
||||
version: 3.1.302
|
||||
version: 5.0.100
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: NuGet restore
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Build
|
||||
inputs:
|
||||
command: 'restore'
|
||||
restoreSolution: '$(solution)'
|
||||
feedsToUse: config
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build and package
|
||||
inputs:
|
||||
solution: '$(solution)'
|
||||
platform: $(buildPlatform)
|
||||
configuration: $(buildConfiguration)
|
||||
command: build
|
||||
projects: '$(solution)'
|
||||
arguments: '--configuration $(buildConfiguration) /p:Platform="$(buildPlatform)"'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
|
||||
|
||||
@@ -22,12 +22,6 @@ Source code and extensive sample application available at http://www.hardcodet.n
|
||||
<tags>NotifyIcon WPF Tray Notify ToolTip Popup Balloon Toast</tags>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="!$(TargetFramework.StartsWith('net4'))">
|
||||
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
|
||||
<GenerateResourceUsePreserializedResources>false</GenerateResourceUsePreserializedResources>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
</PropertyGroup>
|
||||
@@ -46,6 +40,13 @@ Source code and extensive sample application available at http://www.hardcodet.n
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition=" '$(IsSampleProject)' != 'true' ">
|
||||
<PropertyGroup>
|
||||
@@ -61,10 +62,6 @@ Source code and extensive sample application available at http://www.hardcodet.n
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.2.31">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
|
||||
<None Include="$(SolutionDir)\icon.png" Pack="true" PackagePath="\"/>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<Application x:Class="Samples.App"
|
||||
<Application x:Class="NotifyIconWpf.Sample.ShowCases.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="Main.xaml">
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.ShowCases
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Samples.Commands
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Closes the current window.
|
||||
@@ -6,7 +6,7 @@ using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using Hardcodet.Wpf.TaskbarNotification;
|
||||
|
||||
namespace Samples.Commands
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Basic implementation of the <see cref="ICommand"/>
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Samples.Commands
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Hides the main window.
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Samples.Commands
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Shows the main window.
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 502 B |
|
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 667 B |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 237 B After Width: | Height: | Size: 237 B |
@@ -1,5 +1,5 @@
|
||||
<Window
|
||||
x:Class="Samples.Main"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Main"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="NotifyIcon Samples"
|
||||
@@ -30,7 +30,7 @@
|
||||
FontSize="14"
|
||||
FontStyle="Italic"
|
||||
FontWeight="Bold"
|
||||
TextWrapping="Wrap" Text="WPF NotifyIcon 1.0.6 - Samples"/>
|
||||
TextWrapping="Wrap" Text="{Binding Path=SampleTitle}"/>
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,133,0,0"
|
||||
@@ -38,8 +38,8 @@
|
||||
Width="164"
|
||||
Height="27"
|
||||
Content="NotifyIcon Declaration"
|
||||
x:Name="btnDeclaration"
|
||||
Click="btnDeclaration_Click" />
|
||||
x:Name="BtnDeclaration"
|
||||
Click="BtnDeclaration_Click" />
|
||||
<TextBlock
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,50,0,0"
|
||||
@@ -67,8 +67,8 @@
|
||||
Content="ToolTips - Inline Declaration"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnInlineToolTip"
|
||||
Click="btnInlineToolTip_Click" />
|
||||
x:Name="BtnInlineToolTip"
|
||||
Click="BtnInlineToolTip_Click" />
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,244,0,0"
|
||||
@@ -76,8 +76,8 @@
|
||||
Content="Popups"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnPopups"
|
||||
Click="btnPopups_Click" />
|
||||
x:Name="BtnPopups"
|
||||
Click="BtnPopups_Click" />
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,281,0,0"
|
||||
@@ -85,8 +85,8 @@
|
||||
Content="Context Menus"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnContextMenus"
|
||||
Click="btnContextMenus_Click" />
|
||||
x:Name="BtnContextMenus"
|
||||
Click="BtnContextMenus_Click" />
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,318,0,0"
|
||||
@@ -94,8 +94,8 @@
|
||||
Content="Balloon Tips"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnBalloons"
|
||||
Click="btnBalloons_Click" />
|
||||
x:Name="BtnBalloons"
|
||||
Click="BtnBalloons_Click" />
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,355,0,0"
|
||||
@@ -103,8 +103,8 @@
|
||||
Content="Commands"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnCommands"
|
||||
Click="btnCommands_Click" />
|
||||
x:Name="BtnCommands"
|
||||
Click="BtnCommands_Click" />
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,207,0,0"
|
||||
@@ -112,8 +112,8 @@
|
||||
Content="ToolTip User Control"
|
||||
Height="27"
|
||||
VerticalAlignment="Top"
|
||||
x:Name="btnToolTipControl"
|
||||
Click="btnToolTipControl_Click" />
|
||||
x:Name="BtnToolTipControl"
|
||||
Click="BtnToolTipControl_Click" />
|
||||
<TextBlock
|
||||
Margin="255.31,50,0,0"
|
||||
VerticalAlignment="Top"
|
||||
@@ -136,8 +136,8 @@
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
Content="Open Sample Window"
|
||||
x:Name="btnMainSample"
|
||||
Click="btnMainSample_Click"
|
||||
x:Name="BtnMainSample"
|
||||
Click="BtnMainSample_Click"
|
||||
Width="164"
|
||||
HorizontalAlignment="Left" />
|
||||
<Path
|
||||
@@ -207,8 +207,8 @@
|
||||
Content="Events"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnEvents"
|
||||
Click="btnEvents_Click" Width="164" HorizontalAlignment="Left" />
|
||||
x:Name="BtnEvents"
|
||||
Click="BtnEvents_Click" Width="164" HorizontalAlignment="Left" />
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,392,0,0"
|
||||
@@ -216,8 +216,8 @@
|
||||
Content="Data Binding"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnDataBinding"
|
||||
Click="btnDataBinding_Click" />
|
||||
x:Name="BtnDataBinding"
|
||||
Click="BtnDataBinding_Click" />
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,429,0,0"
|
||||
@@ -225,8 +225,8 @@
|
||||
Content="MVVM"
|
||||
VerticalAlignment="Top"
|
||||
Height="27"
|
||||
x:Name="btnMvvm"
|
||||
Click="btnMvvm_Click" />
|
||||
x:Name="BtnMvvm"
|
||||
Click="BtnMvvm_Click" />
|
||||
<Image Margin="562.24,-19,-41.24,440" Source="Images/Logo.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" Opacity="0.235">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
@@ -1,16 +1,11 @@
|
||||
using System.Diagnostics;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using Samples.Tutorials;
|
||||
using Samples.Tutorials.Balloons;
|
||||
using Samples.Tutorials.Commands;
|
||||
using Samples.Tutorials.ContextMenus;
|
||||
using Samples.Tutorials.DataBinding;
|
||||
using Samples.Tutorials.Events;
|
||||
using Samples.Tutorials.MvvmSample;
|
||||
using Samples.Tutorials.Popups;
|
||||
using Samples.Tutorials.ToolTips;
|
||||
using NotifyIconWpf.Sample.ShowCases.Showcase;
|
||||
using NotifyIconWpf.Sample.ShowCases.Tutorials;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.ShowCases
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for Main.xaml
|
||||
@@ -20,9 +15,9 @@ namespace Samples
|
||||
public Main()
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = this;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Sets <see cref="Window.WindowStartupLocation"/> and
|
||||
/// <see cref="Window.Owner"/> properties of a dialog that
|
||||
@@ -36,58 +31,79 @@ namespace Samples
|
||||
window.ShowDialog();
|
||||
}
|
||||
|
||||
private void btnDeclaration_Click(object sender, RoutedEventArgs e)
|
||||
private static string Version
|
||||
{
|
||||
get
|
||||
{
|
||||
var executingAssembly = Assembly.GetExecutingAssembly();
|
||||
|
||||
// Use assembly version
|
||||
string version = executingAssembly.GetName().Version.ToString();
|
||||
|
||||
// Use AssemblyFileVersion if available
|
||||
var assemblyFileVersionAttribute = executingAssembly.GetCustomAttribute<AssemblyFileVersionAttribute>();
|
||||
if (!string.IsNullOrEmpty(assemblyFileVersionAttribute?.Version))
|
||||
{
|
||||
var assemblyFileVersion = new Version(assemblyFileVersionAttribute.Version);
|
||||
version = assemblyFileVersion.ToString(3);
|
||||
}
|
||||
|
||||
return version.Replace("+", " - ");
|
||||
}
|
||||
}
|
||||
public string SampleTitle { get; } = $"WPF NotifyIcon {Version} - Samples";
|
||||
|
||||
private void BtnDeclaration_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new SimpleWindowWithNotifyIcon());
|
||||
}
|
||||
|
||||
|
||||
private void btnInlineToolTip_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnInlineToolTip_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new InlineToolTipWindow());
|
||||
}
|
||||
|
||||
private void btnToolTipControl_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnToolTipControl_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new UserControlToolTipWindow());
|
||||
}
|
||||
|
||||
private void btnPopups_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnPopups_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new InlinePopupWindow());
|
||||
}
|
||||
|
||||
private void btnContextMenus_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnContextMenus_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new InlineContextMenuWindow());
|
||||
}
|
||||
|
||||
private void btnBalloons_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnBalloons_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new BalloonSampleWindow());
|
||||
}
|
||||
|
||||
private void btnCommands_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnCommands_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new CommandWindow());
|
||||
}
|
||||
|
||||
private void btnEvents_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnEvents_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new EventVisualizerWindow());
|
||||
}
|
||||
|
||||
private void btnDataBinding_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnDataBinding_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new DataBoundToolTipWindow());
|
||||
}
|
||||
|
||||
private void btnMvvm_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnMvvm_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowDialog(new MvvmSampleWindow());
|
||||
}
|
||||
|
||||
private void btnMainSample_Click(object sender, RoutedEventArgs e)
|
||||
private void BtnMainSample_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var sampleWindow = new ShowcaseWindow
|
||||
{
|
||||
@@ -1,15 +1,17 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
|
||||
<RootNamespace>Samples</RootNamespace>
|
||||
<AssemblyTitle>Sample Project</AssemblyTitle>
|
||||
<Product>Sample Project</Product>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net5.0-windows</TargetFrameworks>
|
||||
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\NotifyIconWpf\NotifyIconWpf.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' != 'net45'">
|
||||
<PackageReference Include="System.Resources.Extensions" Version="5.0.0" PrivateAssets="All"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
|
||||
<Reference Include="PresentationFramework.Aero" />
|
||||
<Reference Include="System.Xaml" />
|
||||
@@ -1,4 +1,4 @@
|
||||
<UserControl x:Class="Samples.FancyBalloon"
|
||||
<UserControl x:Class="NotifyIconWpf.Sample.ShowCases.Showcase.FancyBalloon"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -5,7 +5,7 @@ using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Input;
|
||||
using Hardcodet.Wpf.TaskbarNotification;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Showcase
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for FancyBalloon.xaml
|
||||
@@ -1,5 +1,5 @@
|
||||
<UserControl
|
||||
x:Class="Samples.FancyPopup"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Showcase.FancyPopup"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Showcase
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for FancyPopup.xaml
|
||||
@@ -5,7 +5,7 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
mc:Ignorable="d"
|
||||
x:Class="Samples.FancyToolTip"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Showcase.FancyToolTip"
|
||||
x:Name="me"
|
||||
Width="285"
|
||||
Height="136">
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Showcase
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for FancyToolTip.xaml
|
||||
@@ -1,7 +1,7 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Commands="clr-namespace:Samples.Commands"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar">
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:commands="clr-namespace:NotifyIconWpf.Sample.ShowCases.Commands">
|
||||
<LinearGradientBrush x:Key="MenuBackground"
|
||||
EndPoint="0.5,1"
|
||||
StartPoint="0.5,0">
|
||||
@@ -55,7 +55,7 @@
|
||||
</MenuItem>
|
||||
|
||||
<MenuItem Header="Show Showcase Window"
|
||||
Command="{Commands:ShowSampleWindowCommand}"
|
||||
Command="{commands:ShowSampleWindowCommand}"
|
||||
CommandParameter="{Binding}">
|
||||
<MenuItem.Icon>
|
||||
<Image Width="16"
|
||||
@@ -67,7 +67,7 @@
|
||||
<Separator />
|
||||
|
||||
<MenuItem Header="Hide Showcase Window"
|
||||
Command="{Commands:HideSampleWindowCommand}"
|
||||
Command="{commands:HideSampleWindowCommand}"
|
||||
CommandParameter="{Binding}">
|
||||
<MenuItem.Icon>
|
||||
<Image Width="16"
|
||||
@@ -1,5 +1,5 @@
|
||||
<Window
|
||||
x:Class="Samples.ShowcaseWindow"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Showcase.ShowcaseWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -11,7 +11,8 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
xmlns:local="clr-namespace:Samples"
|
||||
xmlns:Commands="clr-namespace:Samples.Commands"
|
||||
xmlns:commands="clr-namespace:NotifyIconWpf.Sample.ShowCases.Commands"
|
||||
xmlns:showcase="clr-namespace:NotifyIconWpf.Sample.ShowCases.Showcase"
|
||||
MinWidth="750"
|
||||
MinHeight="800"
|
||||
ResizeMode="NoResize">
|
||||
@@ -68,17 +69,17 @@
|
||||
Visibility="{Binding Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=iconVisibility, Mode=Default}"
|
||||
MenuActivation="{Binding Path=SelectedItem, ElementName=lstMenuTrigger, Mode=Default}"
|
||||
PopupActivation="{Binding Path=SelectedItem, ElementName=lstPopupTrigger, Mode=Default}"
|
||||
DoubleClickCommand="{Commands:ShowSampleWindowCommand}"
|
||||
DoubleClickCommand="{commands:ShowSampleWindowCommand}"
|
||||
DoubleClickCommandParameter="{Binding RelativeSource={RelativeSource Self}}">
|
||||
|
||||
<tb:TaskbarIcon.TrayPopup>
|
||||
<!-- the control will be put into a popup with an explicit DataContext -->
|
||||
<local:FancyPopup />
|
||||
<showcase:FancyPopup />
|
||||
</tb:TaskbarIcon.TrayPopup>
|
||||
|
||||
<tb:TaskbarIcon.TrayToolTip>
|
||||
<!-- the control will be put into a tooltip with an explicit DataContext -->
|
||||
<local:FancyToolTip
|
||||
<showcase:FancyToolTip
|
||||
Opacity="0.85"
|
||||
InfoText="{Binding Path=ToolTipText}" />
|
||||
</tb:TaskbarIcon.TrayToolTip>
|
||||
@@ -4,7 +4,7 @@ using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Navigation;
|
||||
using Hardcodet.Wpf.TaskbarNotification;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Showcase
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ShowcaseWindow.xaml
|
||||
@@ -1,5 +1,5 @@
|
||||
<UserControl
|
||||
x:Class="Samples.WelcomeBalloon"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Showcase.WelcomeBalloon"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Showcase
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for WelcomeBalloon.xaml
|
||||
@@ -1,5 +1,5 @@
|
||||
<Window
|
||||
x:Class="Samples.Tutorials.SimpleWindowWithNotifyIcon"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.SimpleWindowWithNotifyIcon"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SimpleWindowWithNotifyIcon.xaml
|
||||
@@ -1,5 +1,5 @@
|
||||
<Window
|
||||
x:Class="Samples.Tutorials.ToolTips.InlineToolTipWindow"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.InlineToolTipWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.ToolTips
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for Window1.xaml
|
||||
@@ -1,5 +1,5 @@
|
||||
<UserControl
|
||||
x:Class="Samples.Tutorials.ToolTips.SimpleUserControl"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.SimpleUserControl"
|
||||
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.Controls;
|
||||
|
||||
namespace Samples.Tutorials.ToolTips
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SimpleUserControl.xaml
|
||||
@@ -1,9 +1,9 @@
|
||||
<Window
|
||||
x:Class="Samples.Tutorials.ToolTips.UserControlToolTipWindow"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.UserControlToolTipWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:local="clr-namespace:Samples.Tutorials.ToolTips"
|
||||
xmlns:tutorials="clr-namespace:NotifyIconWpf.Sample.ShowCases.Tutorials"
|
||||
Height="300"
|
||||
Width="300">
|
||||
<Grid>
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<!-- assign user control as ToolTip -->
|
||||
<tb:TaskbarIcon.TrayToolTip>
|
||||
<local:SimpleUserControl />
|
||||
<tutorials:SimpleUserControl />
|
||||
</tb:TaskbarIcon.TrayToolTip>
|
||||
|
||||
</tb:TaskbarIcon>
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.ToolTips
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for UserControlToolTipWindow.xaml
|
||||
@@ -1,9 +1,9 @@
|
||||
<Window
|
||||
x:Class="Samples.Tutorials.Popups.InlinePopupWindow"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.InlinePopupWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:commands="clr-namespace:Samples.Commands"
|
||||
xmlns:commands="clr-namespace:NotifyIconWpf.Sample.ShowCases.Commands"
|
||||
Height="300"
|
||||
Width="300">
|
||||
<Grid>
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.Popups
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for InlinePopupWindow.xaml
|
||||
@@ -1,8 +1,8 @@
|
||||
<Window x:Class="Samples.Tutorials.ContextMenus.InlineContextMenuWindow"
|
||||
<Window x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.InlineContextMenuWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:commands="clr-namespace:Samples.Commands"
|
||||
xmlns:commands="clr-namespace:NotifyIconWpf.Sample.ShowCases.Commands"
|
||||
Height="300"
|
||||
Width="300">
|
||||
<Grid>
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.ContextMenus
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for InlineContextMenuWindow.xaml
|
||||
@@ -1,5 +1,5 @@
|
||||
<Window
|
||||
x:Class="Samples.Tutorials.Balloons.BalloonSampleWindow"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.BalloonSampleWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -1,7 +1,8 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using NotifyIconWpf.Sample.ShowCases.Showcase;
|
||||
|
||||
namespace Samples.Tutorials.Balloons
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for BalloonSampleWindow.xaml
|
||||
@@ -1,19 +1,19 @@
|
||||
<Window
|
||||
x:Class="Samples.Tutorials.Commands.CommandWindow"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.CommandWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:local="clr-namespace:Samples.Tutorials.Commands"
|
||||
Height="300"
|
||||
Width="300"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:tutorials="clr-namespace:NotifyIconWpf.Sample.ShowCases.Tutorials"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
|
||||
<!-- declare the command as a local resource -->
|
||||
<Grid.Resources>
|
||||
<local:ShowMessageCommand
|
||||
<tutorials:ShowMessageCommand
|
||||
x:Key="MessageCommand" />
|
||||
</Grid.Resources>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.Commands
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for CommandWindow.xaml
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Samples.Tutorials.Commands
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// A simple command that displays the command parameter as
|
||||
@@ -1,5 +1,5 @@
|
||||
<Window
|
||||
x:Class="Samples.Tutorials.Events.EventVisualizerWindow"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.EventVisualizerWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.Events
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EventVisualizerWindow.xaml
|
||||
@@ -1,4 +1,4 @@
|
||||
<Window x:Class="Samples.Tutorials.DataBinding.DataBoundToolTipWindow"
|
||||
<Window x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.DataBoundToolTipWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -9,7 +9,7 @@
|
||||
<!-- the ToolTipText property is bound to the TextBox below -->
|
||||
<tb:TaskbarIcon x:Name="MyNotifyIcon1"
|
||||
IconSource="/Icons/Error.ico"
|
||||
ToolTipText="{Binding ElementName=txtToolTip, Path=Text}">
|
||||
ToolTipText="{Binding ElementName=TxtToolTip, Path=Text}">
|
||||
|
||||
<!--
|
||||
The TextBlock bound to the ToolTipText property of the NotifyIcon
|
||||
@@ -36,7 +36,7 @@
|
||||
<tb:TaskbarIcon x:Name="MyNotifyIcon2"
|
||||
DataContext="WPF FTW "
|
||||
IconSource="/Icons/Inactive.ico"
|
||||
ToolTipText="{Binding ElementName=txtToolTip, Path=Text}">
|
||||
ToolTipText="{Binding ElementName=TxtToolTip, Path=Text}">
|
||||
|
||||
<tb:TaskbarIcon.TrayToolTip>
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
<TextBox Margin="26,0,24,10"
|
||||
Text="hello world"
|
||||
TextWrapping="Wrap"
|
||||
x:Name="txtToolTip"
|
||||
x:Name="TxtToolTip"
|
||||
Height="25"
|
||||
VerticalAlignment="Bottom" />
|
||||
<TextBlock Margin="26,0,125,45"
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.DataBinding
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for DataBoundToolTipWindow.xaml
|
||||
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@@ -3,7 +3,7 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
x:Class="Samples.Tutorials.MvvmSample.ClockPopup"
|
||||
x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.ClockPopup"
|
||||
x:Name="UserControl"
|
||||
Height="141"
|
||||
Width="304">
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace Samples.Tutorials.MvvmSample
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ClockPopup.xaml
|
||||
@@ -3,7 +3,7 @@ using System.ComponentModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Threading;
|
||||
|
||||
namespace Samples.Tutorials.MvvmSample
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
public class MvvmSampleViewModel : INotifyPropertyChanged
|
||||
{
|
||||
@@ -1,13 +1,13 @@
|
||||
<Window x:Class="Samples.Tutorials.MvvmSample.MvvmSampleWindow"
|
||||
<Window x:Class="NotifyIconWpf.Sample.ShowCases.Tutorials.MvvmSampleWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Samples.Tutorials.MvvmSample"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:tutorials="clr-namespace:NotifyIconWpf.Sample.ShowCases.Tutorials"
|
||||
Title="MvvmSampleWindow"
|
||||
Height="300"
|
||||
Width="300">
|
||||
<Window.DataContext>
|
||||
<local:MvvmSampleViewModel />
|
||||
<tutorials:MvvmSampleViewModel />
|
||||
</Window.DataContext>
|
||||
<Grid>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
ToolTipText="{Binding Timestamp}">
|
||||
<tb:TaskbarIcon.TrayPopup >
|
||||
<!-- the popup, here a custom user control, will also get the DataContext of the NotifyIcon -->
|
||||
<local:ClockPopup Opacity="0.8" />
|
||||
<tutorials:ClockPopup Opacity="0.8" />
|
||||
</tb:TaskbarIcon.TrayPopup>
|
||||
</tb:TaskbarIcon>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.MvvmSample
|
||||
namespace NotifyIconWpf.Sample.ShowCases.Tutorials
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MvvmSampleWindow.xaml
|
||||
6
src/NotifyIconWpf.Sample.ShowCases/app.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<System.Windows.Forms.ApplicationConfigurationSection>
|
||||
<add key="DpiAwareness" value="PerMonitorV2" />
|
||||
</System.Windows.Forms.ApplicationConfigurationSection>
|
||||
</configuration>
|
||||
@@ -1,4 +1,4 @@
|
||||
<Application x:Class="Windowless_Sample.App"
|
||||
<Application x:Class="NotifyIconWpf.Sample.Windowless.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
ShutdownMode="OnExplicitShutdown">
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Windows;
|
||||
using Hardcodet.Wpf.TaskbarNotification;
|
||||
|
||||
namespace Windowless_Sample
|
||||
namespace NotifyIconWpf.Sample.Windowless
|
||||
{
|
||||
/// <summary>
|
||||
/// Simple application. Check the XAML for comments.
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Windowless_Sample
|
||||
namespace NotifyIconWpf.Sample.Windowless
|
||||
{
|
||||
/// <summary>
|
||||
/// Simplistic delegate command for the demo.
|
||||
@@ -1,4 +1,4 @@
|
||||
<Window x:Class="Windowless_Sample.MainWindow"
|
||||
<Window x:Class="NotifyIconWpf.Sample.Windowless.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="MainWindow" Height="350" Width="525">
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Windowless_Sample
|
||||
namespace NotifyIconWpf.Sample.Windowless
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
@@ -1,7 +1,7 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:local="clr-namespace:Windowless_Sample">
|
||||
xmlns:local="clr-namespace:NotifyIconWpf.Sample.Windowless">
|
||||
|
||||
<!-- The taskbar context menu - the first row is a dummy to show off simple data binding -->
|
||||
<!--
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Windowless_Sample
|
||||
namespace NotifyIconWpf.Sample.Windowless
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides bindable properties and commands for the NotifyIcon. In this sample, the
|
||||
@@ -1,15 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFrameworks>net45;net472;netcoreapp3.1</TargetFrameworks>
|
||||
<RootNamespace>Windowless_Sample</RootNamespace>
|
||||
<AssemblyTitle>Windowless Sample</AssemblyTitle>
|
||||
<Product>Windowless Sample</Product>
|
||||
<TargetFrameworks>net45;net472;netcoreapp3.1;net5.0-windows</TargetFrameworks>
|
||||
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\NotifyIconWpf\NotifyIconWpf.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' != 'net45'">
|
||||
<PackageReference Include="System.Resources.Extensions" Version="5.0.0" PrivateAssets="All"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
6
src/NotifyIconWpf.Sample.Windowless/app.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<System.Windows.Forms.ApplicationConfigurationSection>
|
||||
<add key="DpiAwareness" value="PerMonitorV2" />
|
||||
</System.Windows.Forms.ApplicationConfigurationSection>
|
||||
</configuration>
|
||||
@@ -1,5 +1,5 @@
|
||||
<UserControl
|
||||
x:Class="Samples.FancyPopup"
|
||||
x:Class="NotifyIconWpf.Sample.WindowsForms.FancyPopup"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples
|
||||
namespace NotifyIconWpf.Sample.WindowsForms
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for FancyPopup.xaml
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace WindowsFormsSample
|
||||
namespace NotifyIconWpf.Sample.WindowsForms
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
@@ -2,10 +2,9 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Forms;
|
||||
using Hardcodet.Wpf.TaskbarNotification;
|
||||
using Samples;
|
||||
using WindowsFormsSample.Properties;
|
||||
using NotifyIconWpf.Sample.WindowsForms.Properties;
|
||||
|
||||
namespace WindowsFormsSample
|
||||
namespace NotifyIconWpf.Sample.WindowsForms
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
@@ -1,16 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
|
||||
<StartupObject>WindowsFormsSample.Program</StartupObject>
|
||||
<AssemblyTitle>WindowsFormsSample</AssemblyTitle>
|
||||
<Product>WindowsFormsSample</Product>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<TargetFrameworks>net472;netcoreapp3.1;net5.0-windows</TargetFrameworks>
|
||||
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\NotifyIconWpf\NotifyIconWpf.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' != 'net45'">
|
||||
<PackageReference Include="System.Resources.Extensions" Version="5.0.0" PrivateAssets="All"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsSample
|
||||
namespace NotifyIconWpf.Sample.WindowsForms
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
@@ -8,10 +8,7 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WindowsFormsSample.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
namespace NotifyIconWpf.Sample.WindowsForms.Properties {
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
6
src/NotifyIconWpf.Sample.WindowsForms/app.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<System.Windows.Forms.ApplicationConfigurationSection>
|
||||
<add key="DpiAwareness" value="PerMonitorV2" />
|
||||
</System.Windows.Forms.ApplicationConfigurationSection>
|
||||
</configuration>
|
||||
@@ -14,11 +14,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotifyIconWpf", "NotifyIconWpf\NotifyIconWpf.csproj", "{7AC63864-7638-41C4-969C-D3197EF2BED9}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample Project", "Sample Project\Sample Project.csproj", "{71C74F29-F1C2-49C5-969F-C25AC4CDFCCC}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotifyIconWpf.Sample.ShowCases", "NotifyIconWpf.Sample.ShowCases\NotifyIconWpf.Sample.ShowCases.csproj", "{71C74F29-F1C2-49C5-969F-C25AC4CDFCCC}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WindowsFormsSample", "WindowsFormsSample\WindowsFormsSample.csproj", "{F6DC0A6D-D1CE-4AD2-92ED-08FFF0AD4FA8}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotifyIconWpf.Sample.WindowsForms", "NotifyIconWpf.Sample.WindowsForms\NotifyIconWpf.Sample.WindowsForms.csproj", "{F6DC0A6D-D1CE-4AD2-92ED-08FFF0AD4FA8}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Windowless Sample", "Windowless Sample\Windowless Sample.csproj", "{964EBFBE-A600-49B2-BDD8-422B46F1D544}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NotifyIconWpf.Sample.Windowless", "NotifyIconWpf.Sample.Windowless\NotifyIconWpf.Sample.Windowless.csproj", "{964EBFBE-A600-49B2-BDD8-422B46F1D544}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
||||
@@ -4,16 +4,9 @@
|
||||
<AssemblyName>Hardcodet.NotifyIcon.Wpf</AssemblyName>
|
||||
<AssemblyTitle>NotifyIcon for WPF</AssemblyTitle>
|
||||
<Product>NotifyIcon WPF</Product>
|
||||
<TargetFrameworks>net45;net472;netcoreapp3.1</TargetFrameworks>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>NotifyIconWpf.snk</AssemblyOriginatorKeyFile>
|
||||
<DelaySign>false</DelaySign>
|
||||
<TargetFrameworks>net45;net472;netcoreapp3.1;net5.0-windows</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="!$(TargetFramework.StartsWith('net4'))">
|
||||
<PackageReference Include="System.Resources.Extensions" Version="4.7.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "3.1.100",
|
||||
"version": "5.0.0",
|
||||
"rollForward": "latestMajor",
|
||||
"allowPrerelease": true
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
|
||||
"version": "1.0.9-preview",
|
||||
"version": "1.0.9",
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/release/v\\d+\\.\\d+"
|
||||
".*/master$"
|
||||
],
|
||||
"nugetPackageVersion": {
|
||||
"semVer": 2
|
||||
|
||||