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
5 changes: 4 additions & 1 deletion MauiProject/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ public App()
{
InitializeComponent();
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NjA0NzI4QDMyMzAyZTMxMmUzMElnd0owNjFveXpldXBBVW9aQ3BkR2VGQUZRK2doVFZPak92T2VzNm5MR1k9");
MainPage = new AppShell();
}
protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new MainPage());
}
}
14 changes: 0 additions & 14 deletions MauiProject/AppShell.xaml

This file was deleted.

9 changes: 0 additions & 9 deletions MauiProject/AppShell.xaml.cs

This file was deleted.

12 changes: 6 additions & 6 deletions MauiProject/EmployeeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace MauiProject
public class EmployeeInfo
{
[Required(AllowEmptyStrings = false, ErrorMessage = "First Name should not be empty")]
public string FirstName { get; set; }
public string MiddleName { get; set; }
public string LastName { get; set; }
public string FirstName { get; set; } = string.Empty;
public string MiddleName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
[StringLength(10, ErrorMessage = "Contact number should not exceed 10 digits")]
public string ContactNumber { get; set; }
public string Email { get; set; }
public string ContactNumber { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
[DataType(DataType.MultilineText)]
public string Address { get; set; }
public string Address { get; set; } = string.Empty;
public DateTime? DateJoined { get; set; }
public bool Confirmed { get; set; }
}
Expand Down
4 changes: 3 additions & 1 deletion MauiProject/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<local:ViewModel/>
</ContentPage.BindingContext>

<sf:SfDataForm DataObject="{Binding Employee}"
<sf:SfDataForm
x:DataType="local:ViewModel"
DataObject="{Binding Employee}"
LayoutType="TextInputLayout"/>

</ContentPage>
12 changes: 7 additions & 5 deletions MauiProject/MauiProject.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0-android;</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net9.0-android;</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>MauiProject</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<!-- Display name -->
<ApplicationTitle>MauiProject</ApplicationTitle>
Expand Down Expand Up @@ -49,8 +50,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="Syncfusion.Maui.DataForm" Version="21.1.41" />
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
<PackageReference Include="Syncfusion.Maui.DataForm" Version="*" />
</ItemGroup>

</Project>
9 changes: 6 additions & 3 deletions MauiProject/MauiProject.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net7.0-android</ActiveDebugFramework>
<ActiveDebugProfile>Pixel 5 - API 32 (Android 12.1 - API 32)</ActiveDebugProfile>
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
<DefaultDevice>pixel_5_-_api_32</DefaultDevice>
<DefaultDevice>pixel_5_-_api_34</DefaultDevice>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>