Skip to content

Instantly share code, notes, and snippets.

View rdelrosario's full-sized avatar

Rendy Del Rosario rdelrosario

View GitHub Profile
<Style x:Key="labelHeader" TargetType="Label">
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="Padding" Value="10" />
<Setter Property="TextColor" Value="Gray" />
</Style>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyApp.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<local:Colors />
<local:Converters />
<local:Templates />
<local:ExplicitStyles />
<StackLayout Orientation="Horizontal">
<Button Text="Login"/>
<Button Text="Register"/>
</StackLayout>
<StackLayout Orientation="Horizontal">
<Button Text="Login"/>
<Button Text="Register"/>
</StackLayout>
<Image Source="ImageEnabled"/>
<Image Source="ImageEnabled">
</Image>
<Image Source="ImageEnabled">
<Image.Triggers>
<Trigger TargetType="Image"
Property="IsEnabled"
Value="False">
<Setter Property="Source" Value="ImageDisabled" />
</Trigger>
</Image.Triggers>
<Image.Effects>
<Image Source="ImageEnabled">
<Image.Effects>
<effect:TintImageEffect/>
</Image.Effects>
<Image.GestureRecognizers>
<TapGestureRecognizer Command="{Binding TapImageCommand}"/>
</Image.GestureRecognizers>
<Image.Triggers>
<Trigger TargetType="Image"
Property="IsEnabled"
<Label Text="Login"/>
<Label Text="Login"
HorizontalOptions="Fill"/>