We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error resizing sfbarcode

To make a qr code resize, I'm using the code below, but when I run it it gives a memory error and crashes the application.

<syncfusion:SfBarcode
Height="Auto"
Width="Auto"
AutoModule="True"
ShowValue="False"
Value="TextQrcode">
   <syncfusion:SfBarcode.Symbology>
      <syncfusion:QRBarcode ErrorCorrectionLevel="Low" QRVersion="Auto">
   </syncfusion:SfBarcode.Symbology>
</syncfusion:SfBarcode>

Is there any way for the component to expand itself according to the screen size?


1 Reply

ET Eswaran Thirugnanasambandam Syncfusion Team March 13, 2023 10:05 AM UTC

Hi Hard shop,


We have prepared a sample based on the code snippet provided and tested the reported crash “Error resizing in sfbarcode”. However, We were unable to replicate the crash at our end. By placing the SfBarCodeGenerator in grid we can expand the control according to the screen size. Please find the tested sample and video in the attached attachments.


Please check the sample. If you still face any problem, can you revert us by modifying the sample based on your scenario, this will help us to provide you with a better solution at the earliest possible time.


Regards,

Eswaran


Attachment: MAUI_Barcodes_d70c2b2d.zip

Loader.
Live Chat Icon For mobile
Up arrow icon