|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | 2 | <Application xmlns="http://xamarin.com/schemas/2014/forms" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
4 | | - x:Class="SimpleContacts.App"> |
| 4 | + x:Class="SimpleContacts.App" |
| 5 | + xmlns:fab="clr-namespace:ThunderDesign.Xamarin.Forms.FloatingActionButton.Controls;assembly=ThunderDesign.Xamarin.Forms.FloatingActionButton"> |
5 | 6 | <!-- |
6 | 7 | Define global resources and styles here, that apply to all pages in your app. |
7 | 8 | --> |
|
67 | 68 | </Setter.Value> |
68 | 69 | </Setter> |
69 | 70 | </Style> |
| 71 | + |
| 72 | + <Style x:Key="RoundFAB" TargetType="fab:FloatingActionButton"> |
| 73 | + <Setter Property="TextColor" Value="White"></Setter> |
| 74 | + <Setter Property="FontSize" Value="30"></Setter> |
| 75 | + <Setter Property="WidthRequest" Value="56"></Setter> |
| 76 | + <Setter Property="HeightRequest" Value="56"></Setter> |
| 77 | + <Setter Property="CornerRadius" Value="28"></Setter> |
| 78 | + </Style> |
70 | 79 | <Style TargetType="Button"> |
71 | 80 | <Setter Property="TextColor" Value="White"></Setter> |
72 | 81 | <Setter Property="VisualStateManager.VisualStateGroups"> |
|
86 | 95 | </VisualStateGroupList> |
87 | 96 | </Setter> |
88 | 97 | </Style> |
| 98 | + <Style TargetType="fab:FloatingActionButton"> |
| 99 | + <Setter Property="VisualStateManager.VisualStateGroups"> |
| 100 | + <VisualStateGroupList> |
| 101 | + <VisualStateGroup x:Name="CommonStates"> |
| 102 | + <VisualState x:Name="Normal"> |
| 103 | + <VisualState.Setters> |
| 104 | + <Setter Property="BackgroundColor" Value="{StaticResource Primary}" /> |
| 105 | + </VisualState.Setters> |
| 106 | + </VisualState> |
| 107 | + <VisualState x:Name="Disabled"> |
| 108 | + <VisualState.Setters> |
| 109 | + <Setter Property="BackgroundColor" Value="#332196F3" /> |
| 110 | + </VisualState.Setters> |
| 111 | + </VisualState> |
| 112 | + </VisualStateGroup> |
| 113 | + </VisualStateGroupList> |
| 114 | + </Setter> |
| 115 | + </Style> |
89 | 116 | </ResourceDictionary> |
90 | 117 | </Application.Resources> |
91 | 118 | </Application> |
0 commit comments