You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning, I decided to install the library to replace the normal switch I had for this one because I like customization.
But when I installed it and placed it in a file the first time I started well, I stopped the project and I run it again and it does not compile and sends me that error that you see in the following screenshot
@ElegantCatterpillar strange, just based on the screenshot of the exception looks to be more of an environment issue, rather than an issue with this library.
Good morning, I decided to install the library to replace the normal switch I had for this one because I like customization.
But when I installed it and placed it in a file the first time I started well, I stopped the project and I run it again and it does not compile and sends me that error that you see in the following screenshot
My code is the following:
MauiProgramExtensions.cs
builder.UseMauiApp<App>() .UseSwitch()
FooterOptions.xaml
`
<switch:CustomSwitch
x:Name="ThemeSwitch"
BackgroundColor="White"
HeightRequest="50"
HorizontalOptions="CenterAndExpand"
IsToggled="{Binding IsDarkTheme}"
KnobBackgroundColor="DeepPink"
KnobHeight="60"
KnobLimit="Boundary"
KnobWidth="60"
Toggled="Switch_Toggled"
VerticalOptions="CenterAndExpand"
WidthRequest="120">
switch:CustomSwitch.StrokeShape
</switch:CustomSwitch.StrokeShape>
switch:CustomSwitch.KnobStrokeShape
</switch:CustomSwitch.KnobStrokeShape>
switch:CustomSwitch.BackgroundContent
</switch:CustomSwitch.BackgroundContent>
`
Try cleaning up the solution, recompiling and even doing a manual cleanup by deleting the compiled files.
The text was updated successfully, but these errors were encountered: