79251197

Date: 2024-12-04 12:44:16
Score: 1
Natty:
Report link

Could it be an issue with threads?

The button works because it's all on UI thread. I assume the flashing happens using some sort of timer on a background thread. UI work needs to be done on an UI thread like so:

    MainThread.BeginInvokeOnMainThread(() =>
    {
        brdLightsim.BackgroundColor = Color.FromRgb(0, 0, 0);
    });
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: UršKA