/Avalonia-QRCode

A QRCode control for Avalonia

Primary LanguageC#MIT LicenseMIT

Avalonia QRCode Control

Icon - of a qr code that points back to here

NuGet version (QRCode.Avalonia)

by Mike James

Using the control

A sample application screenshot.

I've included a sample app to demonstrate the functionality of the control. It's a straightforward control, and thus should be self-explanatory.

Create a QR Code pointing to GitHub

<qr:QRCode Data="https://github.com" />

Change the colors

<qr:QRCode Data="https://github.com" 
           Color="Red" 
           SpaceBrush="Blue" />

Remove the border

<qr:QRCode Data="https://github.com" 
           DrawQuietZones="false" />

Include an icon image

<qr:QRCode Data="https://github.com" 
           Icon="/Assets/yourImage.png" />

QRCoder powers the bitmap generation; you should check it's comprehensive documentation for more information.