Overwrite Xamarin default styles

By default, Xamarin implements some styles:

  • BodyStyle
  • CaptionStyle
  • ListItemDetailTextStyle
  • ListItemTextStyle
  • SubtitleStyle
  • TitleStyle

I know that I can define my own styles, overwrite the default style of a control, etc. However I can't achieve to overwrite the these styles.

Is it possible to overwrite them from the XAML? I am using Xamarin Forms and I would like to change it in the portable project.

Thanks for your help.

1 answer

  • answered 2017-06-17 18:24 Demitrian

    The short answer is, that your request is currently not supported. As you can see from the Device.Styles class here, the Styles are declared as readonly which means you will currently not be able to change or override these ones specifically.

    This means that you will have to, for now, implement your own interpretation of the built-in Styles.