diff --git a/AutoSuggestBox/AppBuilderExtensions.cs b/AutoSuggestBox/AppBuilderExtensions.cs index 50810bf..22c1875 100644 --- a/AutoSuggestBox/AppBuilderExtensions.cs +++ b/AutoSuggestBox/AppBuilderExtensions.cs @@ -1,6 +1,6 @@ -using AutoSuggestBox.Handlers; +using Maui.AutoSuggestBox.Handlers; -namespace AutoSuggestBox; +namespace Maui.AutoSuggestBox; /// /// This class contains CustomSwitch extensions. diff --git a/AutoSuggestBox/Controls/AutoSuggestBox.cs b/AutoSuggestBox/Controls/AutoSuggestBox.cs index 0455623..d2520c7 100644 --- a/AutoSuggestBox/Controls/AutoSuggestBox.cs +++ b/AutoSuggestBox/Controls/AutoSuggestBox.cs @@ -1,8 +1,8 @@ #nullable enable -using AutoSuggestBox.Handlers; +using Maui.AutoSuggestBox.Handlers; using System.Windows.Input; -namespace AutoSuggestBox +namespace Maui.AutoSuggestBox { public class AutoSuggestBox : View, IAutoSuggestBox { diff --git a/AutoSuggestBox/Controls/AutoSuggestBoxQuerySubmittedEventArgs.cs b/AutoSuggestBox/Controls/AutoSuggestBoxQuerySubmittedEventArgs.cs index 6ad848c..3cfa919 100644 --- a/AutoSuggestBox/Controls/AutoSuggestBoxQuerySubmittedEventArgs.cs +++ b/AutoSuggestBox/Controls/AutoSuggestBoxQuerySubmittedEventArgs.cs @@ -1,4 +1,4 @@ -namespace AutoSuggestBox +namespace Maui.AutoSuggestBox { /// /// Provides event data for the AutoSuggestBox.QuerySubmitted event. diff --git a/AutoSuggestBox/Controls/AutoSuggestBoxSuggestionChosenEventArgs.cs b/AutoSuggestBox/Controls/AutoSuggestBoxSuggestionChosenEventArgs.cs index 1908471..356cd7c 100644 --- a/AutoSuggestBox/Controls/AutoSuggestBoxSuggestionChosenEventArgs.cs +++ b/AutoSuggestBox/Controls/AutoSuggestBoxSuggestionChosenEventArgs.cs @@ -1,4 +1,4 @@ -namespace AutoSuggestBox +namespace Maui.AutoSuggestBox { /// /// Provides data for the event. diff --git a/AutoSuggestBox/Controls/AutoSuggestBoxTextChangeReason.cs b/AutoSuggestBox/Controls/AutoSuggestBoxTextChangeReason.cs index 550e79c..5427f67 100644 --- a/AutoSuggestBox/Controls/AutoSuggestBoxTextChangeReason.cs +++ b/AutoSuggestBox/Controls/AutoSuggestBoxTextChangeReason.cs @@ -1,4 +1,4 @@ -namespace AutoSuggestBox; +namespace Maui.AutoSuggestBox; public enum AutoSuggestBoxTextChangeReason { diff --git a/AutoSuggestBox/Controls/AutoSuggestBoxTextChangedEventArgs.cs b/AutoSuggestBox/Controls/AutoSuggestBoxTextChangedEventArgs.cs index dba8e15..2556c0b 100644 --- a/AutoSuggestBox/Controls/AutoSuggestBoxTextChangedEventArgs.cs +++ b/AutoSuggestBox/Controls/AutoSuggestBoxTextChangedEventArgs.cs @@ -1,4 +1,4 @@ -namespace AutoSuggestBox +namespace Maui.AutoSuggestBox { /// /// Provides data for the TextChanged event. diff --git a/AutoSuggestBox/Controls/IAutoSuggestBox.shared.cs b/AutoSuggestBox/Controls/IAutoSuggestBox.shared.cs index 60c4b81..1d77d15 100644 --- a/AutoSuggestBox/Controls/IAutoSuggestBox.shared.cs +++ b/AutoSuggestBox/Controls/IAutoSuggestBox.shared.cs @@ -1,4 +1,4 @@ -namespace AutoSuggestBox; +namespace Maui.AutoSuggestBox; public interface IAutoSuggestBox : IView { diff --git a/AutoSuggestBox/Extensions/AutoSuggestBoxViewExtensions.cs b/AutoSuggestBox/Extensions/AutoSuggestBoxViewExtensions.cs index a9e4f12..18dbf31 100644 --- a/AutoSuggestBox/Extensions/AutoSuggestBoxViewExtensions.cs +++ b/AutoSuggestBox/Extensions/AutoSuggestBoxViewExtensions.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace AutoSuggestBox.Extensions; +namespace Maui.AutoSuggestBox.Extensions; /// diff --git a/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.Android.cs b/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.Android.cs index b963448..926a8ee 100644 --- a/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.Android.cs +++ b/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.Android.cs @@ -1,9 +1,9 @@ #nullable enable using Microsoft.Maui.Handlers; -using AutoSuggestBox.Platforms.Android; +using Maui.AutoSuggestBox.Platforms.Android; using Microsoft.Maui.Platform; -namespace AutoSuggestBox.Handlers; +namespace Maui.AutoSuggestBox.Handlers; public partial class AutoSuggestBoxHandler : ViewHandler { diff --git a/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.cs b/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.cs index 6e31496..2afff4d 100644 --- a/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.cs +++ b/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.cs @@ -1,13 +1,13 @@ #if ANDROID -using PlatformView = AutoSuggestBox.Platforms.Android.AutoSuggestBoxView; +using PlatformView = Maui.AutoSuggestBox.Platforms.Android.AutoSuggestBoxView; #elif IOS -using PlatformView = AutoSuggestBox.Platforms.iOS.AutoSuggestBoxView; +using PlatformView = Maui.AutoSuggestBox.Platforms.iOS.AutoSuggestBoxView; #elif (NETSTANDARD || !PLATFORM) || (NET6_0_OR_GREATER && !IOS && !ANDROID) using PlatformView = System.Object; #endif using Microsoft.Maui.Handlers; -namespace AutoSuggestBox.Handlers; +namespace Maui.AutoSuggestBox.Handlers; /// /// AutoSuggestBox handler diff --git a/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.iOS.cs b/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.iOS.cs index baa2454..07467a0 100644 --- a/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.iOS.cs +++ b/AutoSuggestBox/Handlers/AutoSuggestBoxHandler.iOS.cs @@ -1,8 +1,8 @@ #nullable enable using Microsoft.Maui.Handlers; -using AutoSuggestBox.Platforms.iOS; +using Maui.AutoSuggestBox.Platforms.iOS; -namespace AutoSuggestBox.Handlers; +namespace Maui.AutoSuggestBox.Handlers; public partial class AutoSuggestBoxHandler : ViewHandler { diff --git a/AutoSuggestBox/Handlers/NativeAutoSuggestBox.Android.cs b/AutoSuggestBox/Handlers/NativeAutoSuggestBox.Android.cs index cd0dd80..c809aa0 100644 --- a/AutoSuggestBox/Handlers/NativeAutoSuggestBox.Android.cs +++ b/AutoSuggestBox/Handlers/NativeAutoSuggestBox.Android.cs @@ -6,7 +6,7 @@ using Microsoft.Maui; using Microsoft.Maui.Platform; -namespace AutoSuggestBox.Platforms.Android +namespace Maui.AutoSuggestBox.Platforms.Android { /// /// Extends AutoCompleteTextView to have similar APIs and behavior to UWP's AutoSuggestBox, which greatly simplifies wrapping it diff --git a/AutoSuggestBox/Handlers/NativeAutoSuggestBox.iOS.cs b/AutoSuggestBox/Handlers/NativeAutoSuggestBox.iOS.cs index bf2d2c4..6715aaa 100644 --- a/AutoSuggestBox/Handlers/NativeAutoSuggestBox.iOS.cs +++ b/AutoSuggestBox/Handlers/NativeAutoSuggestBox.iOS.cs @@ -5,7 +5,7 @@ using System.Runtime.InteropServices; using UIKit; -namespace AutoSuggestBox.Platforms.iOS +namespace Maui.AutoSuggestBox.Platforms.iOS { /// /// Creates a UIView with dropdown with a similar API and behavior to UWP's AutoSuggestBoxView diff --git a/AutoSuggestBox/AutoSuggestBox.csproj b/AutoSuggestBox/Maui.AutoSuggestBox.csproj similarity index 94% rename from AutoSuggestBox/AutoSuggestBox.csproj rename to AutoSuggestBox/Maui.AutoSuggestBox.csproj index 44c2583..be97276 100644 --- a/AutoSuggestBox/AutoSuggestBox.csproj +++ b/AutoSuggestBox/Maui.AutoSuggestBox.csproj @@ -11,21 +11,21 @@ 14.2 30.0 + Maui.AutoSuggestBox high - DotMorten.Maui.AutoSuggestBox + AutoSuggestBox A control that allows you to design any type of switch/ toggle for .NET MAUI. It's also 100% accessible. Morten Nielsen en - DotMorten.Maui.AutoSuggestBox Morten Nielsen MIT $(DefineConstants); false - AutoSuggest Box for .NET MAUI + Maui AutoSuggest Box Use an AutoSuggestBox to provide a list of suggestions for a user to select from as they type. $(AssemblyName) ($(TargetFramework)) 1.0.0.0 diff --git a/AutoSuggestionBoxApp/AutoSuggestionBoxApp.csproj b/AutoSuggestionBoxApp/AutoSuggestionBoxApp.csproj index c3a3fc3..c847484 100644 --- a/AutoSuggestionBoxApp/AutoSuggestionBoxApp.csproj +++ b/AutoSuggestionBoxApp/AutoSuggestionBoxApp.csproj @@ -69,7 +69,7 @@ - + diff --git a/AutoSuggestionBoxApp/MauiProgram.cs b/AutoSuggestionBoxApp/MauiProgram.cs index 6245d2f..f1d1b1d 100644 --- a/AutoSuggestionBoxApp/MauiProgram.cs +++ b/AutoSuggestionBoxApp/MauiProgram.cs @@ -1,4 +1,4 @@ -using AutoSuggestBox; +using Maui.AutoSuggestBox; namespace AutoSuggestionBoxApp; diff --git a/AutoSuggestionBoxApp/Views/Dynamic.xaml b/AutoSuggestionBoxApp/Views/Dynamic.xaml index 00c8071..9ac4184 100644 --- a/AutoSuggestionBoxApp/Views/Dynamic.xaml +++ b/AutoSuggestionBoxApp/Views/Dynamic.xaml @@ -3,7 +3,7 @@ x:Class="AutoSuggestionBoxApp.Views.Dynamic" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" - xmlns:local="clr-namespace:AutoSuggestBox;assembly=AutoSuggestBox" + xmlns:local="clr-namespace:Maui.AutoSuggestBox;assembly=Maui.AutoSuggestBox" Padding="20"> diff --git a/AutoSuggestionBoxApp/Views/Dynamic.xaml.cs b/AutoSuggestionBoxApp/Views/Dynamic.xaml.cs index 1d98fb2..6773f6a 100644 --- a/AutoSuggestionBoxApp/Views/Dynamic.xaml.cs +++ b/AutoSuggestionBoxApp/Views/Dynamic.xaml.cs @@ -1,4 +1,4 @@ -using AutoSuggestBox; +using Maui.AutoSuggestBox; using Microsoft.Maui.Controls.Platform; namespace AutoSuggestionBoxApp.Views diff --git a/AutoSuggestionBoxApp/Views/Email.xaml b/AutoSuggestionBoxApp/Views/Email.xaml index 13e3c70..08b74b6 100644 --- a/AutoSuggestionBoxApp/Views/Email.xaml +++ b/AutoSuggestionBoxApp/Views/Email.xaml @@ -3,7 +3,7 @@ x:Class="AutoSuggestionBoxApp.Views.Email" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" - xmlns:local="clr-namespace:AutoSuggestBox;assembly=AutoSuggestBox" + xmlns:local="clr-namespace:Maui.AutoSuggestBox;assembly=Maui.AutoSuggestBox" Padding="20"> diff --git a/AutoSuggestionBoxApp/Views/Email.xaml.cs b/AutoSuggestionBoxApp/Views/Email.xaml.cs index 652e18e..183dc72 100644 --- a/AutoSuggestionBoxApp/Views/Email.xaml.cs +++ b/AutoSuggestionBoxApp/Views/Email.xaml.cs @@ -1,4 +1,4 @@ -using AutoSuggestBox; +using Maui.AutoSuggestBox; namespace AutoSuggestionBoxApp.Views { [XamlCompilation(XamlCompilationOptions.Compile)] diff --git a/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml b/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml index 6e24f51..3a64408 100644 --- a/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml +++ b/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml @@ -3,7 +3,7 @@ x:Class="AutoSuggestionBoxApp.Views.PreviousAndSuggested" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" - xmlns:local="clr-namespace:AutoSuggestBox;assembly=AutoSuggestBox" + xmlns:local="clr-namespace:Maui.AutoSuggestBox;assembly=Maui.AutoSuggestBox" Padding="20"> diff --git a/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml.cs b/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml.cs index bc7bd85..b90f941 100644 --- a/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml.cs +++ b/AutoSuggestionBoxApp/Views/PreviousAndSuggested.xaml.cs @@ -1,4 +1,4 @@ -using AutoSuggestBox; +using Maui.AutoSuggestBox; using System.ComponentModel; namespace AutoSuggestionBoxApp.Views diff --git a/AutoSuggestionBoxApp/Views/Simple.xaml b/AutoSuggestionBoxApp/Views/Simple.xaml index 1431e5f..6b208b3 100644 --- a/AutoSuggestionBoxApp/Views/Simple.xaml +++ b/AutoSuggestionBoxApp/Views/Simple.xaml @@ -3,7 +3,7 @@ x:Class="AutoSuggestionBoxApp.Views.Simple" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" - xmlns:local="clr-namespace:AutoSuggestBox;assembly=AutoSuggestBox" + xmlns:local="clr-namespace:Maui.AutoSuggestBox;assembly=Maui.AutoSuggestBox" Padding="20"> @@ -19,23 +19,6 @@ PlaceholderText="Enter another country" QuerySubmitted="SuggestBox_QuerySubmitted" TextChanged="SuggestBox_TextChanged" /> - - - - - - - - - - - \ No newline at end of file diff --git a/AutoSuggestionBoxApp/Views/Simple.xaml.cs b/AutoSuggestionBoxApp/Views/Simple.xaml.cs index 827d5fd..d5fefca 100644 --- a/AutoSuggestionBoxApp/Views/Simple.xaml.cs +++ b/AutoSuggestionBoxApp/Views/Simple.xaml.cs @@ -1,4 +1,4 @@ -using AutoSuggestBox; +using Maui.AutoSuggestBox; using System.ComponentModel; namespace AutoSuggestionBoxApp.Views @@ -48,8 +48,6 @@ private void SuggestBox_QuerySubmitted(object sender, AutoSuggestBoxQuerySubmitt SuggestBox2.Focus(); else if (sender == SuggestBox2) SuggestBox2.Unfocus(); - else if (sender == SuggestBox3) - SuggestBox3.Unfocus(); } } } \ No newline at end of file diff --git a/dotMorten.Maui.AutoSuggestBox.sln b/dotMorten.Maui.AutoSuggestBox.sln index 0e8534f..30afaed 100644 --- a/dotMorten.Maui.AutoSuggestBox.sln +++ b/dotMorten.Maui.AutoSuggestBox.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.6.33513.286 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoSuggestBox", "AutoSuggestBox\AutoSuggestBox.csproj", "{90DB4AF2-D4DD-4C1A-AF1F-CC3D2C5C9562}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Maui.AutoSuggestBox", "AutoSuggestBox\Maui.AutoSuggestBox.csproj", "{90DB4AF2-D4DD-4C1A-AF1F-CC3D2C5C9562}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoSuggestionBoxApp", "AutoSuggestionBoxApp\AutoSuggestionBoxApp.csproj", "{49376CD0-BF14-47BA-8783-3E0E89C129AC}" EndProject