StaticResource not found for key IconButtonStyle

Hello everybody,

my Visual Studio throws the following Exception if i try to serve the Project.Android.

"Xamarin.Forms.Xaml.XamlParseException: 'Position 38:29. StaticResource not found for key IconButtonStyle'"

it reffer to the "HealthCarePage.xaml.g.cs"
i don´t know what i should do to solve this Error.

HealthCarePage.xaml



                                                    Command="{Binding Path=BindingContext.MenuCommand, Source={x:Reference healthCarePage}}"
                            FontSize="22"
                            HorizontalOptions="Start"
                            Style="{StaticResource IconButtonStyle}"
                            Text="{StaticResource BurgerMenu}" />

                   


HealthCarePage.xaml.g.cs

  [global::Xamarin.Forms.Xaml.XamlFilePathAttribute("Views\\HealthCarePage.xaml")]
    public partial class HealthCarePage : global::Xamarin.Forms.ContentPage {
        
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "2.0.0.0")]
        private global::Xamarin.Forms.ContentPage healthCarePage;
        
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "2.0.0.0")]
        private void InitializeComponent() {
            global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(HealthCarePage));
            healthCarePage = global::Xamarin.Forms.NameScopeExtensions.FindByName(this, "healthCarePage");
        }
    }


Styles.xaml


   
   


1 Reply 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team April 6, 2021 11:08 AM UTC

Hi Janik, 
 
Greetings from Syncfusion. 
 
We have analyzed your query and we have prepared the sample with HealthcarePage template by using visual studio extension. And it was working at our end. Please find the sample from the below link. 
 
  
Please let us know if you have any concern. 
 
Regards, 
Yuvaraj. 


Marked as answer
Loader.
Up arrow icon