Skip to content

Commit

Permalink
nuget proj update to 1.05
Browse files Browse the repository at this point in the history
  • Loading branch information
masonyc committed Dec 12, 2018
1 parent 360a9ad commit 67bb3a6
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 12 deletions.
3 changes: 2 additions & 1 deletion Sample/Nuget/Sample.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ protected override void OnCreate(Bundle savedInstanceState)
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
Xamarin.EnableKeyboardEffect.Droid.Effects.Init(this);
LoadApplication(new App());
}
}
Expand Down
3 changes: 2 additions & 1 deletion Sample/Nuget/Sample.Android/Sample.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect">
<Version>1.0.4</Version>
<Version>1.0.5</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.1.0.583944" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="27.0.2.1" />
Expand All @@ -62,6 +62,7 @@
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\Resource.designer.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AboutResources.txt" />
Expand Down
2 changes: 1 addition & 1 deletion Sample/Nuget/Sample.iOS/Sample.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect">
<Version>1.0.4</Version>
<Version>1.0.5</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.1.0.583944" />
</ItemGroup>
Expand Down
28 changes: 24 additions & 4 deletions Sample/Nuget/Sample/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
<?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:local="clr-namespace:Sample"
xmlns:effects="clr-namespace:Xamarin.EnableKeyboardEffect;assembly=Xamarin.EnableKeyboardEffect"
x:Class="Sample.MainPage">

<StackLayout VerticalOptions="CenterAndExpand" HorizontalOptions="FillAndExpand">
<Entry Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False">
<Button Clicked="button1_clicked" Text="Focus Button 1"></Button>
<Button Clicked="button2_clicked" Text="Focus Button 2"></Button>
<Entry x:Name="Entry1" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry1_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry Text="Show Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="True">
<Entry x:Name="Entry2" Text="Show Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="True" Completed="Entry2_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry3" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry3_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry4" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry4_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry5" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry5_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry6" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry6_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
</StackLayout>

</ContentPage>
44 changes: 40 additions & 4 deletions Sample/Nuget/Sample/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace Sample
Expand All @@ -13,5 +9,45 @@ public MainPage()
{
InitializeComponent();
}

private void button1_clicked(object sender, EventArgs e)
{
Entry1.Focus();
}

private void button2_clicked(object sender, EventArgs e)
{
Entry2.Focus();
}

private void Entry1_OnCompleted(object sender, EventArgs e)
{
Entry3.Focus();
}

private void Entry3_OnCompleted(object sender, EventArgs e)
{
Entry4.Focus();
}

private void Entry4_OnCompleted(object sender, EventArgs e)
{
Entry5.Focus();
}

private void Entry5_OnCompleted(object sender, EventArgs e)
{
Entry6.Focus();
}

private void Entry6_OnCompleted(object sender, EventArgs e)
{
Entry2.Focus();
}

private void Entry2_OnCompleted(object sender, EventArgs e)
{
Entry1.Focus();
}
}
}
2 changes: 1 addition & 1 deletion Sample/Nuget/Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect" Version="1.0.4" />
<PackageReference Include="Xamarin.EnableKeyboardEffect" Version="1.0.5" />
<PackageReference Include="Xamarin.Forms" Version="3.1.0.583944" />
</ItemGroup>
</Project>

0 comments on commit 67bb3a6

Please sign in to comment.