Skip to content

Commit 8b1ac1c

Browse files
committed
Updated AutoComplete sample.
1 parent 7fe1845 commit 8b1ac1c

25 files changed

+28
-136
lines changed

DropdownwidthAutocomplete/App.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version = "1.0" encoding = "UTF-8" ?>
22
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4-
xmlns:local="clr-namespace:DropdownwidthMaui"
5-
x:Class="DropdownwidthMaui.App">
4+
xmlns:local="clr-namespace:DropdownWidthAutoComplete"
5+
x:Class="DropdownWidthAutoComplete.App">
66
<Application.Resources>
77
<ResourceDictionary>
88
<ResourceDictionary.MergedDictionaries>

DropdownwidthAutocomplete/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DropdownwidthMaui
1+
namespace DropdownWidthAutoComplete
22
{
33
public partial class App : Application
44
{

DropdownwidthAutocomplete/AppShell.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<Shell
3-
x:Class="DropdownwidthMaui.AppShell"
3+
x:Class="DropdownWidthAutoComplete.AppShell"
44
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6-
xmlns:local="clr-namespace:DropdownwidthMaui"
6+
xmlns:local="clr-namespace:DropdownWidthAutoComplete"
77
Shell.FlyoutBehavior="Disabled"
8-
Title="DropdownwidthMaui">
8+
Title="DropdownWidthAutoComplete">
99

1010
<ShellContent
1111
Title="Home"

DropdownwidthAutocomplete/AppShell.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DropdownwidthMaui
1+
namespace DropdownWidthAutoComplete
22
{
33
public partial class AppShell : Shell
44
{

DropdownwidthAutocomplete/DropdownwidthMaui.csproj

Lines changed: 0 additions & 66 deletions
This file was deleted.

DropdownwidthAutocomplete/DropdownwidthMaui.sln

Lines changed: 0 additions & 31 deletions
This file was deleted.

DropdownwidthAutocomplete/MainPage.xaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:editors="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs"
5-
xmlns:ListCollection="clr-namespace:System.Collections.Generic;assembly=netstandard"
6-
xmlns:local="clr-namespace:DropdownwidthMaui"
7-
x:Class="DropdownwidthMaui.MainPage">
5+
x:Class="DropdownWidthAutoComplete.MainPage">
86

97
<editors:SfAutocomplete DropdownWidth="250"
108
HeightRequest="40"
@@ -20,5 +18,4 @@
2018
</editors:SfAutocomplete.ItemsSource>
2119
</editors:SfAutocomplete>
2220

23-
2421
</ContentPage>
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Runtime.InteropServices.Marshalling;
2-
3-
namespace DropdownwidthMaui
1+
namespace DropdownWidthAutoComplete
42
{
53
public partial class MainPage : ContentPage
64
{
@@ -9,13 +7,6 @@ public MainPage()
97
InitializeComponent();
108
}
119

12-
//private void Slider_ValueChanged(object sender, ValueChangedEventArgs e)
13-
//{
14-
// Widthslider.Value = e.NewValue;
15-
// Combobox.DropdownWidth = Widthslider.Value;
16-
// Combobox1.DropdownWidth = Widthslider.Value;
17-
// WidthLabel.Text = $"DropdownWidth : {(int)Widthslider.Value}";
18-
//}
1910
}
2011

2112
}

DropdownwidthAutocomplete/MauiProgram.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
using Microsoft.Extensions.Logging;
22
using Syncfusion.Maui.Core.Hosting;
33

4-
namespace DropdownwidthMaui
4+
5+
namespace DropdownWidthAutoComplete
56
{
67
public static class MauiProgram
78
{

DropdownwidthAutocomplete/Platforms/Android/MainActivity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
using Android.Content.PM;
33
using Android.OS;
44

5-
namespace DropdownwidthMaui
5+
namespace DropdownWidthAutoComplete
66
{
7-
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
7+
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
88
public class MainActivity : MauiAppCompatActivity
99
{
1010
}

0 commit comments

Comments
 (0)