You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/getting-started.md
+33-27Lines changed: 33 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ uid: Toolkit.GettingStarted
7
7
8
8
The Uno.Toolkit library is available as NuGet packages that can be added to any new or existing Uno solution.
9
9
10
+
> [!NOTE]
11
+
> The Toolkit library also has support for C# Markup through a [Uno.Toolkit.WinUI.Markup](https://www.nuget.org/packages/Uno.Toolkit.WinUI.Markup) NuGet Package. To get started with Toolkit in your C# Markup application, add the `Uno.Toolkit.WinUI.Markup` NuGet package to your **App Code Library** project and your platform heads.
12
+
10
13
> [!NOTE]
11
14
> As of [Uno 4.7](https://platform.uno/blog/uno-platform-4-7-new-project-template-performance-improvements-and-more/), the solution template of an Uno app has changed. There is no longer a Shared project (.shproj), it has been replaced with a regular cross-platform library containing all user code files, referred to as the **App Code Library** project. This also implies that package references can be included in a single location without the previous need to include those in all project heads.
12
15
@@ -19,23 +22,39 @@ This article is a guide for installing the base Uno.Toolkit library, additional
19
22
20
23
1. Open an existing Uno project, or create a new Uno project using the `Multi-Platform App (Uno Platform)` template.
21
24
2. In the Solution Explorer panel, right-click on your app's **App Code Library** project (`PROJECT_NAME.csproj`) and select `Manage NuGet Packages...`
22
-
3. Install the [**`Uno.Toolkit.WinUI`**](https://www.nuget.org/packages/Uno.Toolkit.WinUI.Material) package
23
-
4. Add the resources to `AppResources.xaml`:
24
-
25
-
```xml
26
-
<ResourceDictionary>
27
-
<ResourceDictionary.MergedDictionaries>
25
+
3. Install the [**`Uno.Toolkit.WinUI`**](https://www.nuget.org/packages/Uno.Toolkit.WinUI.Material) package for XAML or [**`Uno.Toolkit.WinUI.Markup`**](https://www.nuget.org/packages/Uno.Toolkit.WinUI.Markup) for C# Markup.
If your application is based on the older solution template that includes a shared project (.shproj), follow these steps:
@@ -74,17 +93,4 @@ If your application is based on the older solution template that includes a shar
74
93
</Application>
75
94
```
76
95
77
-
## Using C# Markup
78
-
79
-
The Toolkit library also has support for C# Markup through a [Uno.Toolkit.WinUI.Markup](https://www.nuget.org/packages/Uno.Toolkit.WinUI.Markup) NuGet Package.
80
-
81
-
To get started with Toolkit in your C# Markup application, add the `Uno.Toolkit.WinUI.Markup` NuGet package to your **App Code Library** project and your platform heads.
82
-
Then, add the following code to your `AppResources.cs`:
83
-
84
-
```csharp
85
-
using Uno.Toolkit.UI.Markup;
86
-
87
-
this.Build(r => r.UseToolkit());
88
-
```
89
-
90
96
> [!NOTE]: If you are using the [Uno.Toolkit.WinUI.Material.Markup](https://www.nuget.org/packages/Uno.Toolkit.WinUI.Material.Markup) NuGet package, follow the steps in the [Using C# Markup for the Material Toolkit](./material-getting-started.md#using-c-markup) guide instead as it includes the Toolkit library.
0 commit comments