-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
72 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Dapplo.Windows.User32" Version="1.0.28"/> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0"/> | ||
<PackageVersion Include="xunit" Version="2.8.0"/> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Dapplo.Windows.User32" Version="1.0.28" /> | ||
<PackageVersion Include="NHotkey" Version="3.0.0" /> | ||
<PackageVersion Include="NHotkey.Wpf" Version="3.0.0" /> | ||
<PackageVersion Include="WPF-UI" Version="3.0.5" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<Application x:Class="ScreenGrab.Sample.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:ScreenGrab.Sample" | ||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
|
||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ui:ThemesDictionary Theme="Dark" /> | ||
<ui:ControlsDictionary /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Windows; | ||
namespace ScreenGrab.Sample; | ||
|
||
namespace ScreenGrab.Sample; | ||
|
||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
public partial class App | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
<Window x:Class="ScreenGrab.Sample.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:ScreenGrab.Sample" | ||
mc:Ignorable="d" | ||
Title="MainWindow" Height="450" Width="800"> | ||
<ui:FluentWindow x:Class="ScreenGrab.Sample.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" | ||
Loaded="MainWindow_OnLoaded" | ||
Unloaded="MainWindow_OnUnloaded" | ||
WindowStartupLocation="CenterScreen" | ||
Title="ScreenGrab Sample" Height="450" Width="800"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="38"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
<StackPanel Orientation="Horizontal"> | ||
<Button Content="Capture" Click="Capture_Click"/> | ||
<Button Content="Clean" Click="Clean_Click"></Button> | ||
</StackPanel> | ||
<Image Grid.Row="1" x:Name="Img"/> | ||
<ui:TitleBar Title="ScreenGrab Sample" /> | ||
<ui:Card Grid.Row="1" Margin="8"> | ||
<StackPanel Orientation="Horizontal"> | ||
<Button Content="Capture" Margin="2 0" Click="Capture_Click" /> | ||
<Button Content="Clean" Margin="2 0" Click="Clean_Click" /> | ||
</StackPanel> | ||
</ui:Card> | ||
<ui:DynamicScrollViewer Grid.Row="2" Margin="8"> | ||
<Image x:Name="Img" /> | ||
</ui:DynamicScrollViewer> | ||
</Grid> | ||
</Window> | ||
</ui:FluentWindow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters