Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I have a ContentView holding a Frame.
On this ContentView I have set gestures (pan and tap). These gestures work as expected.
If I set the Background color of the frame, the gestures are no longer triggered.
Removing the line makes the gestures work again.
public class ChartView: Frame
HasShadow = false;
HorizontalOptions = LayoutOptions.Start;
VerticalOptions = LayoutOptions.Start;
BackgroundColor = Color.White; //This line disables the gestures.
Padding = new Thickness(5);
I have not been able to reproduce the behavior where BackgroundColor being set prevents the gestures from working.
However, I can confirm that the pan gestures do not work at all on a Frame in Android AppCompat.
Tap gestures are working, but that's only because we recently fixed bug 35477 which was causing them to fail on Frames under AppCompat.
Created attachment 15344 [details]
This page shows a similar problem as I have reported in this bug.
Test cases show Frames containing a grid and ContentViews containing a grid.
The grid has backgroundcolor set to transparant (no problem) or set to gray (gestures don't trigger).
Another testcase shows a ContentView containing a Frame. Same result.
As soon as the content of a view has a backgroundcolor, the gestures no longer trigger.
I can 'solve' the problem by setting the gesture on the grid. But since the grid doesn't always cover the entire Frame, I must also set the gesture on the Frame.
This behavior is as designed. Views are only input transparent if they are visually transparent. Your solution of setting the gesture on the grid in addition to the frame is the correct one.