diff --git a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/AutoSuggestBox.cs b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/AutoSuggestBox.cs
index 50aca0f..950b784 100644
--- a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/AutoSuggestBox.cs
+++ b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/AutoSuggestBox.cs
@@ -8,7 +8,6 @@
#elif __IOS__
using CoreGraphics;
using Xamarin.Forms.Platform.iOS;
-//using NativeAutoSuggestBox = UIKit.UIView;
#elif NETFX_CORE
using Xamarin.Forms.Platform.UWP;
using NativeAutoSuggestBox = Windows.UI.Xaml.Controls.AutoSuggestBox;
@@ -24,7 +23,7 @@ namespace dotMorten.Xamarin.Forms
///
/// Represents a text control that makes suggestions to users as they type. The app is notified when text
/// has been changed by the user and is responsible for providing relevant suggestions for this control to display.
- /// Use the UWP Reference doc for more information: Link
+ /// Use the UWP Reference doc for more information: Link
///
public partial class AutoSuggestBox : View
{
@@ -33,6 +32,9 @@ public partial class AutoSuggestBox : View
#endif
private bool suppressTextChangedEvent;
+ ///
+ /// Initializes a new instance of the class
+ ///
public AutoSuggestBox()
{
#if !NETSTANDARD2_0
@@ -48,11 +50,13 @@ public AutoSuggestBox()
suppressTextChangedEvent = false;
TextChanged?.Invoke(this, new AutoSuggestBoxTextChangedEventArgs((AutoSuggestionBoxTextChangeReason) e.Reason));
};
+ NativeAutoSuggestBox.QuerySubmitted += (s, e) => QuerySubmitted?.Invoke(this, new AutoSuggestBoxQuerySubmittedEventArgs(e.QueryText, e.ChosenSuggestion));
#else
throw new PlatformNotSupportedException();
#endif
}
+ ///
protected override void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
if(propertyName == nameof(IsEnabled))
@@ -210,7 +214,7 @@ public System.Collections.IList ItemsSource
}
///
- /// Identifies the bindable property.
+ /// Identifies the bindable property.
///
public static readonly BindableProperty ItemsSourceProperty =
BindableProperty.Create(nameof(ItemsSource), typeof(System.Collections.IList), typeof(AutoSuggestBox), null, BindingMode.OneWay, null, OnItemsSourcePropertyChanged);
diff --git a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.Android.cs b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.Android.cs
index a6d1224..e06416d 100644
--- a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.Android.cs
+++ b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.Android.cs
@@ -161,7 +161,6 @@ public override long GetItemId(int position)
private class SuggestFilter : Filter
{
private IEnumerable resultList;
- private FilterResults results;
public SuggestFilter()
{
diff --git a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.iOS.cs b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.iOS.cs
index 113810a..5c7f2fe 100644
--- a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.iOS.cs
+++ b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/NativeAutoSuggestBox.iOS.cs
@@ -32,7 +32,6 @@ public NativeAutoSuggestBox()
};
inputText.ShouldReturn = InputText_OnShouldReturn;
inputText.EditingChanged += InputText_EditingChanged;
- inputText.Started += InputText_Started;
inputText.EndedWithReason += InputText_EndedWithReason;
inputText.ReturnKeyType = UIKit.UIReturnKeyType.Search;
@@ -154,12 +153,6 @@ private void SuggestionTableSource_TableRowSelected(object sender, TableRowSelec
IsSuggestionListOpen = false;
}
- private void InputText_Started(object sender, EventArgs e)
- {
- //if (selectionList.Source != null && selectionList.Source.RowsInSection(selectionList, 0) > 0)
- // IsSuggestionListOpen = true;
- }
-
private void InputText_EditingChanged(object sender, EventArgs e)
{
TextChanged?.Invoke(this, new AutoSuggestBoxTextChangedEventArgs(AutoSuggestionBoxTextChangeReason.UserInput));
diff --git a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox.csproj b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox.csproj
index 60ea7c3..8be1de8 100644
--- a/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox.csproj
+++ b/AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox/dotMorten.Xamarin.Forms.AutoSuggestBox.csproj
@@ -9,14 +9,15 @@
https://github.com/dotMorten/XamarinFormsControls
https://github.com/dotMorten/XamarinFormsControls
https://github.com/dotMorten/XamarinFormsControls/LICENSE.MD
- 0.5.0
+ 0.1.0
+ $(MSBuildThisFileDirectory)bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml
10.0.16299.0
10.0.16299.0
-
+