My project is in Xamarin.Forms, supported platform is iOS, android and Mac. I have two Stacklayout in single Xamrin.Forms.View and each Stacklayout has one button on same position. It means button 1 position is x=100 and y=100 in first Stacklayout and button 2 position in second Stacklayout is same as first Stacklayout. By default first Stacklayout Visible and second one is hide, now when I clicked on button 1 then first Stacklayout hide and visible second layout after API response arrived.
When user click on button 1 then I immediately change text to "Please Wait" and here button textcolor is set to White for better view in dark button background. Lets consider that API take 10 second time to do process, In between if user click multiple time on button 1 then in Mac platform, Mac will store/preserver those clicked events somewhere and when second Stacklayout Visible after 10 seconds, then mac immediately fire those stored/preserved clicked events for button 2 even user not clicked on button 2. How can I prevent it?
I have tried to set IsEnabled=false of button 1 once user clicked on it, it works fine in above scenario but when I do button to disabled in that case button text color changed from white to Black automatically in mac platform. I do not want to change color of text. If any one have solution to change color of text in disabled mode then it works for me OR if any other solution to prevent multiple click then please let me know.