Skip to content

Commit 8f1d549

Browse files
Updated changes
1 parent 4aaa740 commit 8f1d549

File tree

5 files changed

+17
-29
lines changed

5 files changed

+17
-29
lines changed

MinMaxDateEditor/App.xaml.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
namespace MinMaxDateEditors;
1+
using MinMaxDateEditor;
2+
3+
namespace MinMaxDateEditors;
24

35
public partial class App : Application
46
{
57
public App()
68
{
79
InitializeComponent();
8-
9-
MainPage = new AppShell();
1010
}
11+
12+
protected override Window CreateWindow(IActivationState? activationState)
13+
{
14+
return new Window(new MainPage());
15+
}
1116
}

MinMaxDateEditor/AppShell.xaml

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

MinMaxDateEditor/AppShell.xaml.cs

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

MinMaxDateEditor/MainPage.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:dataForm="clr-namespace:Syncfusion.Maui.DataForm;assembly=Syncfusion.Maui.DataForm"
55
xmlns:local="clr-namespace:MinMaxDateEditor"
6+
x:DataType="local:DataFormViewModel"
67
x:Class="MinMaxDateEditor.MainPage">
78
<dataForm:SfDataForm x:Name="dataForm"
89
DataObject="{Binding DataFormModel}">

MinMaxDateEditor/MinMaxDateEditor.csproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>
99
<RootNamespace>MinMaxDateEditors</RootNamespace>
1010
<UseMaui>true</UseMaui>
1111
<SingleProject>true</SingleProject>
1212
<ImplicitUsings>enable</ImplicitUsings>
13+
<Nullable>enable</Nullable>
1314

1415
<!-- Display name -->
1516
<ApplicationTitle>MinMaxDateEditors</ApplicationTitle>
@@ -49,8 +50,12 @@
4950
</ItemGroup>
5051

5152
<ItemGroup>
52-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
53+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
5354
<PackageReference Include="Syncfusion.Maui.DataForm" Version="*" />
5455
</ItemGroup>
5556

57+
<ItemGroup>
58+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
59+
</ItemGroup>
60+
5661
</Project>

0 commit comments

Comments
 (0)