Effect sample Entry disable auto correct
This commit is contained in:
Родитель
3ba625197b
Коммит
1bfbf38c2f
|
@ -1,11 +1,11 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Este código fue generado por una herramienta.
|
||||
// Versión de runtime:4.0.30319.42000
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||
// se vuelve a generar el código.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -47,6 +47,9 @@
|
|||
<Compile Include="Views\EffectsEntryClearPage.xaml.cs">
|
||||
<DependentUpon>EffectsEntryClearPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Views\EffectsEntryDisableAutoCorrectPage.xaml.cs">
|
||||
<DependentUpon>EffectsEntryDisableAutoCorrectPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Views\EffectsEntryPage.xaml.cs">
|
||||
<DependentUpon>EffectsEntryPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
@ -143,6 +146,12 @@
|
|||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Views\EffectsEntryDisableAutoCorrectPage.xaml">
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
|
||||
<Import Project="..\..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="FormsCommunityToolkit.Samples.Views.EffectsEntryDisableAutoCorrectPage"
|
||||
xmlns:effects="clr-namespace:FormsCommunityToolkit.Effects;assembly=FormsCommunityToolkit.Effects"
|
||||
Title="Disable auto correct entry">
|
||||
<Grid Margin="10,20,10,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Text="Disable auto correct on an Entry"
|
||||
Grid.Row="0" />
|
||||
<Entry Placeholder="start typing..." VerticalOptions="Start"
|
||||
Margin="0,10,0,10"
|
||||
Grid.Row="1">
|
||||
<Entry.Effects>
|
||||
<effects:EntryDisableAutoCorrect />
|
||||
</Entry.Effects>
|
||||
</Entry>
|
||||
</Grid>
|
||||
</ContentPage>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace FormsCommunityToolkit.Samples.Views
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class EffectsEntryDisableAutoCorrectPage : ContentPage
|
||||
{
|
||||
public EffectsEntryDisableAutoCorrectPage ()
|
||||
{
|
||||
InitializeComponent ();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,13 +7,17 @@
|
|||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Button Text="CapitalizeKeyboard effect"
|
||||
<Button Text="Capitalize keyboard effect"
|
||||
Clicked="OnCapitalizeKeyboardButtonClicked"
|
||||
Grid.Row="0" />
|
||||
<Button Text="Clear effect"
|
||||
Clicked="OnClearButtonClicked"
|
||||
Grid.Row="1" />
|
||||
<Button Text="Disable auto correct effect"
|
||||
Clicked="OnDisableAutoCorrectButtonClicked"
|
||||
Grid.Row="2" />
|
||||
</Grid>
|
||||
</ContentPage>
|
|
@ -19,5 +19,10 @@ namespace FormsCommunityToolkit.Samples.Views
|
|||
{
|
||||
await Navigation.PushAsync(new EffectsEntryClearPage());
|
||||
}
|
||||
|
||||
private async void OnDisableAutoCorrectButtonClicked(object sender, System.EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new EffectsEntryDisableAutoCorrectPage());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Este código fue generado por una herramienta.
|
||||
// Versión de runtime:4.0.30319.42000
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||
// se vuelve a generar el código.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче