Getting Started

RadBarcode is rendered via the SkiaSharp graphics library.

Define RadBarcode control

If your app is setup, you are ready to add a RadBarcode control to your page. In the sample the QRCode symbology is used, for more details on the available Barcode symbologies go to Supported Types topic.

<telerikBarcode:RadBarcode x:Name="barcode" 
                           Value="https://www.telerik.com/maui-ui"                               
                           WidthRequest="1000" HeightRequest="1000">
    <telerikBarcode:RadBarcode.Symbology>
        <telerikBarcode:QRCode SizingMode="Stretch" />
    </telerikBarcode:RadBarcode.Symbology>
</telerikBarcode:RadBarcode>

Add the following namespace:

xmlns:telerikBarcode="clr-namespace:Telerik.XamarinForms.Barcode;assembly=Telerik.Maui.Controls.Compatibility"

Register the Telerik controls through Telerik.Maui.Controls.Compatibility.UseTelerik extension method called inside the Configure method of the Startup.cs file of your project:

using Telerik.Maui.Controls.Compatibility;



public void Configure(IAppHostBuilder appBuilder)
{
    appBuilder        
        .UseTelerik()
        .UseMauiApp<App>();

}              

Here is the result:

Figure 1: Barcode Getting Started

Getting Started Example

See Also

In this article
Not finding the help you need?