QRCoder.Xaml is the XamlQRCode-extension for the popular QRCoder .NET library.
$ dotnet add package QRCoder.XamlQRCoder.Xaml is an extension that provides the XamlQRCode-renderer for the popular QRCoder.NET library. It allows you to render QRCodes as DrawingImage-objects for usage in WPF/XAML-based projects.
For usage information see the demo code below. For more general information check the QRCoder-wiki.
👉 Your first place to go should be our wiki. Here you can find a detailed documentation of the QRCoder and its functions.
The release notes for the current and all past releases can be read here: 📄 Release Notes
You only need four lines of code, to generate and view your first QR code.
using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", eccLevel))
using (XamlQRCode qrCode = new XamlQRCode(qrCodeData))
{
DrawingImage qrCodeAsXaml = qrCode.GetGraphic(20);
}
There are a plenty of other options. So feel free to read more on that in our wiki: Wiki: How to use QRCoder
If you think you have found a bug or have new ideas or feature requests, then feel free to open a new issue: https://github.com/codebude/QRCoder/issues
In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/codebude/QRCoder/discussions
QRCoder is a project by Raffael Herrmann and was first released in 10/2013. It's licensed under the MIT license.