How do I set the Style attribute of a View or Layout in codebehind? In xaml, it is simply set using the style attribute, but I cannot seem to find anything to set it in codebehind. In my specific case, I am trying to set the style of a GridLayout. Any ideas? Thanks.