Itp.WpfScanners
3.0.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
dotnet add package Itp.WpfScanners --version 3.0.0
NuGet\Install-Package Itp.WpfScanners -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Itp.WpfScanners" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Itp.WpfScanners --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Itp.WpfScanners, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Itp.WpfScanners as a Cake Addin #addin nuget:?package=Itp.WpfScanners&version=3.0.0 // Install Itp.WpfScanners as a Cake Tool #tool nuget:?package=Itp.WpfScanners&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ITP WPF Barcode Scanner API
Keyboard-like incorporation of barcode scanners into WPF applications. Support for Serial and HID barcode scanners.
ScannerScope
s are a container element which handles scans which occur when focus is within the scope.
Scanner scopes connect to a parent ScannerControlScope
, which "owns" the scanner and interacts with hardware.
When focus is outside of any ScannerScope
s, the scanner is disabled or ceded to other applications
Example use
<Window x:Class="Itp.WpfScanners.TestClient.ScannerTestWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cscan="urn:itp:scanners"
Title="ScannerTestWindow" Height="300" Width="300">
<cscan:ScannerControlScope AutoConfigure="True">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<TextBox Text="This side of the form is not scanner enabled" />
<GroupBox Header="This side is enabled" Grid.Column="1">
<cscan:ScannerScope x:Name="scope1" ScanReceived="scope1_ScanReceived">
<StackPanel Orientation="Vertical">
<TextBox x:Name="tbS1" Text="This is attached to the outside" />
<GroupBox Header="still enabled">
<cscan:ScannerScope x:Name="scope2" ScanReceived="scope2_ScanReceived">
<StackPanel Orientation="Vertical">
<Button Content="this is on the inside" x:Name="btS2" />
</StackPanel>
</cscan:ScannerScope>
</GroupBox>
</StackPanel>
</cscan:ScannerScope>
</GroupBox>
</Grid>
</cscan:ScannerControlScope>
</Window>
Codebehind:
using System.Windows;
namespace Itp.WpfScanners.TestClient
{
public partial class ScannerTestWindow : Window
{
public ScannerTestWindow()
{
InitializeComponent();
}
private void scope1_ScanReceived(object? sender, ScannedDataEventArgs args)
{
tbS1.Text = args.TextData;
args.IsHandled = true;
}
private void scope2_ScanReceived(object? sender, ScannedDataEventArgs args)
{
btS2.Content = args.TextData;
args.IsHandled = true;
}
}
}
Known issues
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows10.0.22621 is compatible. net9.0-windows was computed. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- Esatto.Utilities (>= 3.0.17)
- Esatto.Win32.Common (>= 3.0.17)
- Esatto.Win32.Registry (>= 3.0.17)
- Itp.HidBarcodeScanner (>= 3.0.0)
-
net8.0-windows10.0.22621
- Esatto.Utilities (>= 3.0.17)
- Esatto.Win32.Common (>= 3.0.17)
- Esatto.Win32.Registry (>= 3.0.17)
- Itp.HidBarcodeScanner (>= 3.0.0)
- System.IO.Ports (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.