Merge pull request #47 from Depechie/dev

Added all current entry effect samples
This commit is contained in:
James Montemagno 2017-09-12 09:13:53 -07:00 коммит произвёл GitHub
Родитель 96821e25e4 58602917ed
Коммит d507d1e970
9 изменённых файлов: 185 добавлений и 0 удалений

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

@ -56,6 +56,15 @@
<Compile Include="Views\EffectsEntryPage.xaml.cs">
<DependentUpon>EffectsEntryPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\EffectsEntryRemoveBorderPage.xaml.cs">
<DependentUpon>EffectsEntryRemoveBorderPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\EffectsEntryRemoveLinePage.xaml.cs">
<DependentUpon>EffectsEntryRemoveLinePage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\EffectsEntrySelectAllTextPage.xaml.cs">
<DependentUpon>EffectsEntrySelectAllTextPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\EffectsPage.xaml.cs">
<DependentUpon>EffectsPage.xaml</DependentUpon>
</Compile>
@ -161,6 +170,24 @@
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\EffectsEntryRemoveBorderPage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\EffectsEntryRemoveLinePage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\EffectsEntrySelectAllTextPage.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">

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

@ -9,6 +9,9 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Button Text="Capitalize keyboard effect"
@ -23,5 +26,14 @@
<Button Text="Italic placeholder effect"
Clicked="OnItalicPlaceholderButtonClicked"
Grid.Row="3" />
<Button Text="Remove border effect"
Clicked="OnRemoveBorderButtonClicked"
Grid.Row="4" />
<Button Text="Remove line effect"
Clicked="OnRemoveLineButtonClicked"
Grid.Row="5" />
<Button Text="Select all text effect"
Clicked="OnSelectAllTextButtonClicked"
Grid.Row="6" />
</Grid>
</ContentPage>

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

@ -29,5 +29,20 @@ namespace FormsCommunityToolkit.Samples.Views
{
await Navigation.PushAsync(new EffectsEntryItalicPlaceholderPage());
}
private async void OnRemoveBorderButtonClicked(object sender, System.EventArgs e)
{
await Navigation.PushAsync(new EffectsEntryRemoveBorderPage());
}
private async void OnRemoveLineButtonClicked(object sender, System.EventArgs e)
{
await Navigation.PushAsync(new EffectsEntryRemoveLinePage());
}
private async void OnSelectAllTextButtonClicked(object sender, System.EventArgs e)
{
await Navigation.PushAsync(new EffectsEntrySelectAllTextPage());
}
}
}

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

@ -0,0 +1,24 @@
<?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.EffectsEntryRemoveBorderPage"
xmlns:effects="clr-namespace:FormsCommunityToolkit.Effects;assembly=FormsCommunityToolkit.Effects"
Title="Remove border entry">>
<Grid Margin="10,20,10,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Text="Removes the border from an Entry"
Grid.Row="0" />
<Entry Placeholder="start typing..." VerticalOptions="Start"
Margin="0,10,0,10"
Grid.Row="1">
<Entry.Effects>
<effects:EntryRemoveBorder />
</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 EffectsEntryRemoveBorderPage : ContentPage
{
public EffectsEntryRemoveBorderPage()
{
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.EffectsEntryRemoveLinePage"
xmlns:effects="clr-namespace:FormsCommunityToolkit.Effects;assembly=FormsCommunityToolkit.Effects"
Title="Remove line entry">
<Grid Margin="10,20,10,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Text="Removes the bottom line from an Entry"
Grid.Row="0" />
<Entry Placeholder="start typing..." VerticalOptions="Start"
Margin="0,10,0,10"
Grid.Row="1">
<Entry.Effects>
<effects:EntryRemoveLine />
</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 EffectsEntryRemoveLinePage : ContentPage
{
public EffectsEntryRemoveLinePage()
{
InitializeComponent();
}
}
}

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

@ -0,0 +1,24 @@
<?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.EffectsEntrySelectAllTextPage"
xmlns:effects="clr-namespace:FormsCommunityToolkit.Effects;assembly=FormsCommunityToolkit.Effects"
Title="Select all text entry">
<Grid Margin="10,20,10,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Text="Select all entered text from an Entry"
Grid.Row="0" />
<Entry Placeholder="start typing..." VerticalOptions="Start"
Text="Tap inside the entry to select this text"
Margin="0,10,0,10"
Grid.Row="1">
<Entry.Effects>
<effects:EntrySelectAllText />
</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 EffectsEntrySelectAllTextPage : ContentPage
{
public EffectsEntrySelectAllTextPage ()
{
InitializeComponent ();
}
}
}