diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/App.xaml.cs b/DropDownHeightCustomization/DropDownHeightCustomization/App.xaml.cs
index db38a49..29dc031 100644
--- a/DropDownHeightCustomization/DropDownHeightCustomization/App.xaml.cs
+++ b/DropDownHeightCustomization/DropDownHeightCustomization/App.xaml.cs
@@ -5,7 +5,9 @@ public partial class App : Application
public App()
{
InitializeComponent();
-
- MainPage = new AppShell();
}
+ protected override Window CreateWindow(IActivationState? activationState)
+ {
+ return new Window(new MainPage());
+ }
}
\ No newline at end of file
diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/AppShell.xaml b/DropDownHeightCustomization/DropDownHeightCustomization/AppShell.xaml
deleted file mode 100644
index 8a243ce..0000000
--- a/DropDownHeightCustomization/DropDownHeightCustomization/AppShell.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/AppShell.xaml.cs b/DropDownHeightCustomization/DropDownHeightCustomization/AppShell.xaml.cs
deleted file mode 100644
index e26ac19..0000000
--- a/DropDownHeightCustomization/DropDownHeightCustomization/AppShell.xaml.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace DropDownHeightCustomization;
-
-public partial class AppShell : Shell
-{
- public AppShell()
- {
- InitializeComponent();
- }
-}
diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Behavior/DataFormBehavior.cs b/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Behavior/DataFormBehavior.cs
index 4ca1fd1..b8c2790 100644
--- a/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Behavior/DataFormBehavior.cs
+++ b/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Behavior/DataFormBehavior.cs
@@ -15,7 +15,7 @@ protected override void OnAttachedTo(SfDataForm dataForm)
dataForm.RegisterEditor("City", DataFormEditorType.ComboBox);
dataForm.GenerateDataFormItem += OnGenerateDataItem;
}
- private void OnGenerateDataItem(object sender, GenerateDataFormItemEventArgs e)
+ private void OnGenerateDataItem(object? sender, GenerateDataFormItemEventArgs e)
{
if (e.DataFormItem != null && e.DataFormItem is DataFormAutoCompleteItem autoComplete)
{
@@ -29,8 +29,6 @@ protected override void OnDetachingFrom(SfDataForm dataForm)
{
dataForm.GenerateDataFormItem -= this.OnGenerateDataItem;
}
-
- dataForm = null;
}
}
}
\ No newline at end of file
diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Model/DataFormModel.cs b/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Model/DataFormModel.cs
index 8a4a8b9..3c32390 100644
--- a/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Model/DataFormModel.cs
+++ b/DropDownHeightCustomization/DropDownHeightCustomization/AutoCompleteEditor/Model/DataFormModel.cs
@@ -4,10 +4,10 @@ namespace DropDownHeightCustomization
{
public class DataFormModel
{
- public string Name { get; set; }
- public string Address { get; set; }
- public string City { get; set; }
- public string Country { get; set; }
- public string Purpose { get; set; }
+ public string Name { get; set; } = string.Empty;
+ public string Address { get; set; } = string.Empty;
+ public string City { get; set; } = string.Empty;
+ public string Country { get; set; } = string.Empty;
+ public string Purpose { get; set; } = string.Empty;
}
}
\ No newline at end of file
diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/DropDownHeightCustomization.csproj b/DropDownHeightCustomization/DropDownHeightCustomization/DropDownHeightCustomization.csproj
index b41e55c..6a90aed 100644
--- a/DropDownHeightCustomization/DropDownHeightCustomization/DropDownHeightCustomization.csproj
+++ b/DropDownHeightCustomization/DropDownHeightCustomization/DropDownHeightCustomization.csproj
@@ -1,15 +1,16 @@
- net7.0-android;net7.0-ios;net7.0-maccatalyst
- $(TargetFrameworks);net7.0-windows10.0.19041.0
+ net9.0-android;net9.0-ios;net9.0-maccatalyst
+ $(TargetFrameworks);net9.0-windows10.0.19041.0
-
+
Exe
DropDownHeightCustomization
true
true
enable
+ enable
DropDownHeightCustomization
@@ -49,7 +50,7 @@
-
+
diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/DropDownHeightCustomization.csproj.user b/DropDownHeightCustomization/DropDownHeightCustomization/DropDownHeightCustomization.csproj.user
new file mode 100644
index 0000000..8700ea2
--- /dev/null
+++ b/DropDownHeightCustomization/DropDownHeightCustomization/DropDownHeightCustomization.csproj.user
@@ -0,0 +1,8 @@
+
+
+
+ False
+ net9.0-windows10.0.19041.0
+ Windows Machine
+
+
\ No newline at end of file
diff --git a/DropDownHeightCustomization/DropDownHeightCustomization/MainPage.xaml b/DropDownHeightCustomization/DropDownHeightCustomization/MainPage.xaml
index 53ebbf1..6b4fa3b 100644
--- a/DropDownHeightCustomization/DropDownHeightCustomization/MainPage.xaml
+++ b/DropDownHeightCustomization/DropDownHeightCustomization/MainPage.xaml
@@ -5,6 +5,7 @@
xmlns:dataForm="clr-namespace:Syncfusion.Maui.DataForm;assembly=Syncfusion.Maui.DataForm"
x:Class="DropDownHeightCustomization.MainPage">