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.
Here is an example in the main app xaml:
<Setter Property="Padding" Value="0"/>
Controls like the Grid control as an example do not obey inheritance like this style with TargetType="Layout" even though the Grid itself is of type Layout.
I have checked this issue and I am also getting the same behavior.
Observation: When I set the TargetType property to "Layout" it is not working for layouts like stack layout, grid etc. but when I set the TargetType property to "StackLayout" it is working fine.
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Installed Version: Professional
Xamarin 3.11.666.0 (ebae43a)
Xamarin.Android 188.8.131.52 (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Xamarin.Forms Intellisense 1.0
Xamarin.iOS 184.108.40.206 (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
This is standard behavior for how Styles work, however you can now set ApplyToDerivedTypes to get the behavior you want.