Styling

Barcode enables you to change the visual appearance of your barcodes so they match your application theme.

  1. To change the colors of the control, set the ForegroundColor and BackgroundColor properties.

    <telerikBarcode:RadBarcode WidthRequest="200" HeightRequest="100"
          HorizontalOptions="Center" VerticalOptions="Center"
          ForegroundColor="DarkBlue"
          BackgroundColor="Beige"
          Value="58000106">
      <telerikBarcode:RadBarcode.Symbology>
          <telerikBarcode:Code39 SizingMode="Stretch" />
      </telerikBarcode:RadBarcode.Symbology>
    </telerikBarcode:RadBarcode>
    
  2. Add the following namespace.

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

    The following image shows a barcode with custom colors.

Barcode Colors

See Also

In this article
Not finding the help you need?