Closed ghost closed 10 months ago
Description :
When having breakpoint inside the ValueChanged event of slider, throws "No compatible code running on the thread" error in Android platform.
MainPage.xaml
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.MainPage"> <StackLayout> <Slider Maximum="100" HeightRequest="50" ValueChanged="Slider_ValueChanged" /> </StackLayout> </ContentPage>
MainPage.xaml.cs
public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); } private void Slider_ValueChanged(object sender, ValueChangedEventArgs e) { } }
Steps to Reproduce :
Output
Xamarin Forms - 5.0.0.2612 Android - API 33 Android OS 13
Looks like this should be fixed in Visual Studio 17.7 preview 4
https://github.com/dotnet/maui/issues/16189#issuecomment-1644037666
Description :
When having breakpoint inside the ValueChanged event of slider, throws "No compatible code running on the thread" error in Android platform.
MainPage.xaml
MainPage.xaml.cs
Steps to Reproduce :
Output![image](https://github.com/xamarin/Xamarin.Forms/assets/97871609/e692544f-7631-4b3e-a972-46c6501c04f8)
Xamarin Forms - 5.0.0.2612 Android - API 33 Android OS 13