keyboard introp

This commit is contained in:
TheXamlGuy
2024-01-04 22:27:54 +00:00
parent d45076f2a9
commit df60262349
6 changed files with 102 additions and 2 deletions
@@ -10,6 +10,6 @@
mc:Ignorable="d">
<Grid>
<Button Content="This is a test" />
<Button Content="This is a test" Click="Button_Click"/>
</Grid>
</Page>
@@ -1,8 +1,15 @@
using Hyperbar.Desktop.Win32;
using Microsoft.UI.Xaml.Controls;
using Windows.System;
namespace Hyperbar.Desktop.Contextual;
public sealed partial class ContextualCommandView : Page
{
public ContextualCommandView() => InitializeComponent();
private void Button_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
{
KeyIntrop.Type((VirtualKey)186, VirtualKey.LeftWindows);
}
}
@@ -18,6 +18,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Hyperbar.Desktop.Win32\Hyperbar.Desktop.Win32.csproj" />
<ProjectReference Include="..\Hyperbar\Hyperbar.csproj" />
</ItemGroup>