xamlmauipragma

Disable XAML binding warning? #pragma warning disable XC0022


I am working w/ Maui XAML, but I would like to disable this XAML warning on a single file (ok maybe a few ;)).

XamlC XC0022 warning : Binding could be compiled if x:DataType is specified.

In C# I would

#pragma warning disable XC0022

Solution

  • To squish the XamlC XC0022 warning :Binding could be compiled if x:DataType is specified., you can use the latest Microsoft.Maui.Controls:8.0.40.

    Related issue link: XamlC XC0022 warning