

Github [WinUI3] Windows Community Toolkit 8.0.0-preview4 for WinUI 3 Preview 4 ·...
source link: https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/3295
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Windows Community Toolkit 8.0.0 Preview 4
WinUI 3 Preview 4
Originally, at //Build, WinUI 3 Preview 1 was released to showcase improvements to WinUI 3 and the first release of the Desktop development story on .NET 5. Now they've shipped Preview 4!
The Windows Community Toolkit has been working alongside the WinUI team to also make sure the Toolkit works on WinUI 3! We're happy to announce that we're also shipping a preview of the toolkit that works on top of this WinUI 3 Preview 4 the same day!
This pre-release showcases the majority of the toolkit working on top of WinUI 3 for Desktop developers in .NET 5! If you find any new issues specific to this preview (or do something awesome), please let us know by commenting below!
Requirements
Getting Started
-
Open your VS 2019 Preview and Create a New Project.
-
Pick the "Blank App, Packaged (WinUI in Desktop) C#" template.
-
Setup your project directories and options as guided by the WinUI 3 Preview docs, we'll refer to "Project Name" generically from here on to be whatever you named your project.
-
(Optional) You should be able to run the "Project Name (Package)" project and see the blank starting app if your WinUI 3 environment is setup correctly.
-
Right-click your other application "Project Name" project, and select "Manage NuGet Packages..."
-
Click the gear in the top-right of the page to configure your NuGet settings.
-
Add a new Package source to our DevOps feed:
https://pkgs.dev.azure.com/dotnet/WindowsCommunityToolkit/_packaging/WindowsCommunityToolkit-WinUI3/nuget/v3/index.json
, be sure to hit the Update button after changing the textboxes, and click OK. Read more on our Preview Packages here. -
Select the "DevOps" package source from the drop-down menu next to the Settings icon.
-
Click on Browse, find a Toolkit package you'd like to add like "Microsoft.Toolkit.Uwp.UI.Controls"
-
Make sure to select the
8.0.0-preview4
version from the Version drop-down and click "Install"! -
Go to your
MainWindow.xaml
and paste in some Toolkit code, like ourUniformGrid
example from our Sample App:
<controls:UniformGrid FirstColumn="1" Orientation="Horizontal" Rows="0" Columns="0"> <Border Background="AliceBlue" Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="2"> <TextBlock Text="1"/> </Border> <Border Background="Cornsilk"> <TextBlock Text="2"/> </Border> <Border Background="DarkSalmon"> <TextBlock Text="3"/> </Border> <Border Background="Gainsboro"> <TextBlock Text="4"/> </Border> <Border Background="LightBlue"> <TextBlock Text="5"/> </Border> <Border Background="MediumAquamarine"> <TextBlock Text="6"/> </Border> <Border Background="MistyRose"> <TextBlock Text="7"/> </Border> <Border Background="LightCyan"> <TextBlock Text="8"/> </Border> <Border Background="Salmon"> <TextBlock Text="9"/> </Border> <Border Background="Goldenrod"> <TextBlock Text="10"/> </Border> <Border Background="Pink"> <TextBlock Text="11"/> </Border> </controls:UniformGrid>
Don't forget the xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
in your Page tag!
(And if you replace the existing template's XAML remove the event handler in the code-behind!)
- Hit F5 and Voila!
Known Issues/Limitations
-
The Windows Community Toolkit 8.x previews are currently only geared towards .NET 5 Desktop development. The toolkit has been tested against the 'UWP' sandboxed versions of WinUI as well, but won't ship a public package until .NET 5 tooling is supported for that environment. (See tracking on dotnet and Project Reunion.)
-
Any component relying on Win2D as a dependency will not function or throw an exception. (See their WinUI tracking issue here.)
-
The new
TabbedCommandBar
control hasn't been updated yet. -
ThemeListener is not working due to APIs being removed in WinUI Preview 4, see their known issue list in link below.
-
GridSplitter cursor doesn't change discussed here because of changes to
CoreWindow
andCursor
property internal issue. -
Be sure to also read the WinUI 3 Preview 4 Known Issue List.
Recommend
-
2
COZ rolls out Boa v0.6 preparing to support Python contract development on Neo3 Preview4 – HodlalertCOZ rolls out Boa v0.6 preparing to support Python contract development on Neo3 Preview4...
-
11
Modernizing your .NET app with WinUI3 – Bruno SonninoIn the last post I showed how to use Xaml Islands to modernize your .NET app. As you c...
-
5
Neo SPCC releases Preview4-compatible NeoGo node, publishes latest Neo3 benchmark results for C# and Go – HodlalertNeo SPCC releases Preview4-compatible NeoGo node, publishes latest Neo3 benchmark results for C# and Go
-
3
Build 2021 :正式发布.NET 6 Preview4 微软在不断推进.NET 6的可用性,昨晚的Build 202...
-
4
Windows Community Toolkit 7.1 Preview Release! Michael August 5th, 2021 Welcome to Windows Community Toolkit 7.1...
-
12
We've just shipped the latest version of WinUI 3, which is a part of Windows App SDK 1.0 preview release! This release includes bug fixes and provides access to APIs and features we are intending to include in the next stable release.
-
6
News Windows App SDK Preview 3 Supports Non-MSIX WinUI 3 App Deployment By
-
13
Unwrapping WinUI3 for C++ Posted on April 8, 2022April 8, 2022 by Marius Bancila The Windows UI Library 3, known shortly as WinUI 3, is a nativ...
-
7
WinUI3修改默认窗口大小 2023-01-13...
-
14
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK