Skip to content

Commit c286ab2

Browse files
committed
Recipes Apps
1 parent 97585e0 commit c286ab2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2232
-5
lines changed

src/Controls/samples/Controls.Sample.Sandbox/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public App()
77
InitializeComponent();
88
}
99

10-
protected override Window CreateWindow(IActivationState? activationState)
10+
protected override Window CreateWindow(IActivationState activationState)
1111
{
1212
// To test shell scenarios, change this to true
1313
bool useShell = false;

src/Controls/samples/Controls.Sample.Sandbox/Maui.Controls.Sample.Sandbox.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
<TargetFrameworks Condition=" '$(UseMaui)' != 'true' and '$(IncludePreviousTfms)' == 'true' ">$(TargetFrameworks);$(MauiSamplePreviousPlatforms)</TargetFrameworks>
66
<OutputType>Exe</OutputType>
77
<SingleProject>true</SingleProject>
8-
<Nullable>enable</Nullable>
8+
<Nullable>disable</Nullable>
99
<IsPackable>false</IsPackable>
1010
<ImplicitUsings>enable</ImplicitUsings>
11-
<Nullable>enable</Nullable>
1211
<!-- Disable multi-RID builds to workaround a parallel build issue -->
1312
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst'))">maccatalyst-x64</RuntimeIdentifier>
1413
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst')) and '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'arm64'">maccatalyst-arm64</RuntimeIdentifier>
1514
</PropertyGroup>
16-
1715
<PropertyGroup>
1816
<ApplicationTitle>Sandbox</ApplicationTitle>
1917
<ApplicationId>com.microsoft.maui.sandbox</ApplicationId>

src/Controls/samples/Controls.Sample.Sandbox/MauiProgram.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
global using global::System;
2+
global using global::System.Collections.Generic;
3+
global using global::System.IO;
4+
global using global::System.Linq;
5+
global using global::System.Net.Http;
6+
global using global::System.Threading;
7+
global using global::System.Threading.Tasks;
8+
9+
global using Microsoft.Maui;
10+
global using Microsoft.Maui.Controls;
11+
global using Microsoft.Maui.Controls.Hosting;
12+
global using Microsoft.Maui.Hosting;
13+
global using Microsoft.Maui.Graphics;
114
namespace Maui.Controls.Sample;
215

316
public static class MauiProgram
@@ -8,7 +21,7 @@ public static MauiApp CreateMauiApp() =>
821
#if __ANDROID__ || __IOS__
922
.UseMauiMaps()
1023
#endif
11-
.UseMauiApp<App>()
24+
.UseMauiApp<Recipes.App>()
1225
.ConfigureFonts(fonts =>
1326
{
1427
fonts.AddFont("Dokdo-Regular.ttf", "Dokdo");
3.58 KB
4.85 KB
317 Bytes
4.34 KB
5.74 KB
12.4 KB
8.67 KB

0 commit comments

Comments
 (0)