Created
February 13, 2020 20:14
-
-
Save stackunderflows/2a2d39f4a47ac5d75ab1ca304bbf8114 to your computer and use it in GitHub Desktop.
Using the ReturnButton
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" | |
xmlns:local="clr-namespace:PhantomLib" | |
xmlns:extensions="clr-namespace:PhantomLib.Extensions;assembly=PhantomLib" | |
xmlns:controls="clr-namespace:PhantomLib.CustomControls;assembly=PhantomLib" | |
xmlns:effects="clr-namespace:PhantomLib.Effects;assembly=PhantomLib" | |
xmlns:behaviors="clr-namespace:PhantomLib.Behaviors;assembly=PhantomLib" | |
xmlns:localvms="clr-namespace:PhantomLibSamples.ViewModels;assembly=PhantomLibSamples" | |
x:Class="PhantomLibSamples.UltimateEntry.UltimateEntryPage" | |
BackgroundColor="{DynamicResource PrimaryColor}" | |
Title="Ultimate Entry"> | |
<ContentPage.Resources> | |
<ResourceDictionary> | |
<Style x:Key="MaterialEntry" TargetType="controls:UltimateEntry"> | |
<Setter Property="ThicknessPadding" Value="10,0,2,0" /> | |
<Setter Property="Grid.Row" Value="1" /> | |
<Setter Property="TextColor" Value="{DynamicResource PrimaryFontColor}" /> | |
<Setter Property="ImageTintColor" Value="{DynamicResource AccentColor}" /> | |
<Setter Property="UnderlineColor" Value="{DynamicResource AccentColor}" /> | |
<Setter Property="FocusedBackgroundColor" Value="{DynamicResource PrimaryColor}" /> | |
<Setter Property="BackgroundColor" Value="{DynamicResource PrimaryColor}" /> | |
<Setter Property="ReturnButton" Value="Next" /> | |
<Setter Property="PlaceholderColor" Value="{DynamicResource SecondaryFontColor}" /> | |
<Setter Property="ErrorImageSource" Value="icon_error" /> | |
<Setter Property="ErrorImageTintColor" Value="{DynamicResource ErrorColor}" /> | |
</Style> | |
</ResourceDictionary> | |
</ContentPage.Resources> | |
<ContentPage.Content> | |
<ScrollView Padding="{DynamicResource Thickness_SafeAreaInsets_LRB}"> | |
<StackLayout Padding="20"> | |
<Frame Padding="0" BackgroundColor="Black" CornerRadius="5"> | |
<StackLayout Padding="20"> | |
<controls:UltimateEntry | |
Placeholder="Address" | |
NextView="{x:Reference CityEntry}" | |
Style="{StaticResource MaterialEntry}" | |
ReturnButton="Next" /> | |
<controls:UltimateEntry x:Name="CityEntry" | |
Style="{StaticResource MaterialEntry}" | |
Placeholder="City" | |
ReturnButton="Done" /> | |
</StackLayout> | |
</Frame> | |
</StackLayout> | |
</ScrollView> | |
</ContentPage.Content> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment