Merge pull request #45 from Depechie/dev

Added 2 entry sample pages in the samples repo
This commit is contained in:
Bart Lannoeye 2017-08-01 20:05:08 +02:00 коммит произвёл GitHub
Родитель 3ba625197b e99aa12785
Коммит 96821e25e4
9 изменённых файлов: 115 добавлений и 9 удалений

Просмотреть файл

@ -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,12 @@
<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\EffectsEntryItalicPlaceholderPage.xaml.cs">
<DependentUpon>EffectsEntryItalicPlaceholderPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\EffectsEntryPage.xaml.cs">
<DependentUpon>EffectsEntryPage.xaml</DependentUpon>
</Compile>
@ -143,6 +149,18 @@
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\EffectsEntryDisableAutoCorrectPage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\EffectsEntryItalicPlaceholderPage.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,12 @@
using Xamarin.Forms;
namespace FormsCommunityToolkit.Samples.Views
{
public partial class EffectsEntryDisableAutoCorrectPage : ContentPage
{
public EffectsEntryDisableAutoCorrectPage ()
{
InitializeComponent ();
}
}
}

Просмотреть файл

@ -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.EffectsEntryItalicPlaceholderPage"
xmlns:effects="clr-namespace:FormsCommunityToolkit.Effects;assembly=FormsCommunityToolkit.Effects"
Title="Italic placeholder entry">
<Grid Margin="10,20,10,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Text="Adds an italic placeholder to an Entry"
Grid.Row="0" />
<Entry Placeholder="start typing..." VerticalOptions="Start"
Margin="0,10,0,10"
Grid.Row="1">
<Entry.Effects>
<effects:EntryItalicPlaceholder />
</Entry.Effects>
</Entry>
</Grid>
</ContentPage>

Просмотреть файл

@ -0,0 +1,12 @@
using Xamarin.Forms;
namespace FormsCommunityToolkit.Samples.Views
{
public partial class EffectsEntryItalicPlaceholderPage : ContentPage
{
public EffectsEntryItalicPlaceholderPage ()
{
InitializeComponent ();
}
}
}

Просмотреть файл

@ -7,13 +7,21 @@
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<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" />
<Button Text="Italic placeholder effect"
Clicked="OnItalicPlaceholderButtonClicked"
Grid.Row="3" />
</Grid>
</ContentPage>

Просмотреть файл

@ -19,5 +19,15 @@ namespace FormsCommunityToolkit.Samples.Views
{
await Navigation.PushAsync(new EffectsEntryClearPage());
}
private async void OnDisableAutoCorrectButtonClicked(object sender, System.EventArgs e)
{
await Navigation.PushAsync(new EffectsEntryDisableAutoCorrectPage());
}
private async void OnItalicPlaceholderButtonClicked(object sender, System.EventArgs e)
{
await Navigation.PushAsync(new EffectsEntryItalicPlaceholderPage());
}
}
}

Просмотреть файл

@ -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>
//------------------------------------------------------------------------------