Skip to content

Commit

Permalink
Use .NET 6.0 for WPF example
Browse files Browse the repository at this point in the history
  • Loading branch information
mfakane committed Dec 6, 2023
1 parent 3d4813b commit 72d991e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
14 changes: 1 addition & 13 deletions RawInput.Sharp.SimpleExample.WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Linearstar.Windows.RawInput;

namespace RawInput.Sharp.SimpleExample.WPF
Expand All @@ -30,7 +18,7 @@ public MainWindow()
SourceInitialized += MainWindow_SourceInitialized;
}

private void MainWindow_SourceInitialized(object sender, EventArgs e)
private void MainWindow_SourceInitialized(object? sender, EventArgs e)
{
var windowInteropHelper = new WindowInteropHelper(this);
var hwnd = windowInteropHelper.Handle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWPF>true</UseWPF>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RawInput.Sharp" Version="0.0.2" />
<ProjectReference Include="..\RawInput.Sharp\RawInput.Sharp.csproj" />
</ItemGroup>
</Project>

0 comments on commit 72d991e

Please sign in to comment.