Last active
February 12, 2018 08:29
-
-
Save cmeeren/a795d0ad40100f4e23ef95699bf59cec to your computer and use it in GitHub Desktop.
Android flat button support in Xamarin.Forms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Application | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| xmlns:controls="clr-namespace:MyApp.Controls;assembly=MyApp" | |
| x:Class="MyApp.App"> | |
| <Application.Resources> | |
| <ResourceDictionary> | |
| <!-- Implicit style - BackgroundColor works on iOS, but not Android (https://bugzilla.xamarin.com/show_bug.cgi?id=60392), | |
| hence the need for the custom renderer in the first place. --> | |
| <Style TargetType="controls:FlatButton"> | |
| <Setter Property="BackgroundColor" Value="Transparent" /> | |
| </Style> | |
| </ResourceDictionary> | |
| </Application.Resources> | |
| </Application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment