Skip to content

Commit

Permalink
Fix samples on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch committed Oct 30, 2024
1 parent 760dff7 commit 286e6f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 9.0/Apps/PointOfSale/src/PointOfSale/PointOfSale.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
<PackageReference Include="MonkeyCache" Version="2.1.1" />
<PackageReference Include="MonkeyCache.FileStore" Version="2.1.1" />
<PackageReference Include="AlohaKit.Animations" Version="1.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0-rc.1.24431.7" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0-rc.1.24431.7" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0-rc.2.24473.5" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0-rc.2.24473.5" />
<PackageReference Include="AsyncAwaitBestPractices" Version="6.0.6" />
<PackageReference Include="Plugin.Maui.KeyListener" Version="1.0.0-preview1" />
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ public MainWindow()
_window ??= this;
}

private void OnRootLayoutLoaded(object? sender, RoutedEventArgs e)
private async void OnRootLayoutLoaded(object? sender, RoutedEventArgs e)
{
// Handle the event firing multiple times
if (_nativeView is not null)
return;

await Task.Yield();

// Create WinUI button
var nativeButton = new Microsoft.UI.Xaml.Controls.Button();
nativeButton.Content = "WinUI button above .NET MAUI controls";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240627000" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240923002" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

Expand Down

0 comments on commit 286e6f5

Please sign in to comment.