Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -29,8 +29,6 @@ protected override void OnDetachingFrom(SfDataForm dataForm)
{
dataForm.GenerateDataFormItem -= this.OnGenerateDataItem;
}

dataForm = null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
<!-- <TargetFrameworks>$(TargetFrameworks);net9.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
<RootNamespace>DropDownHeightCustomization</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<!-- Display name -->
<ApplicationTitle>DropDownHeightCustomization</ApplicationTitle>
Expand Down Expand Up @@ -49,7 +50,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
<PackageReference Include="Syncfusion.Maui.DataForm" Version="*" />
<PackageReference Include="Syncfusion.Maui.Inputs" Version="*" />
<PackageReference Include="Syncfusion.Maui.ListView" Version="*" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:dataForm="clr-namespace:Syncfusion.Maui.DataForm;assembly=Syncfusion.Maui.DataForm"
x:Class="DropDownHeightCustomization.MainPage">
<dataForm:SfDataForm x:Name="dataForm"
x:DataType="local:DataFormViewModel"
DataObject="{Binding DataFormModel}">
<dataForm:SfDataForm.BindingContext>
<local:DataFormViewModel/>
Expand Down