From d940a0364c2c580a28b641b9cb10edd6d448353b Mon Sep 17 00:00:00 2001 From: Kunal22shah Date: Wed, 23 Oct 2024 14:07:52 -0400 Subject: [PATCH] docs: fix path for single proj (cherry picked from commit bae4288251abeb34fc47551f58fabe97691b49de) --- doc/articles/features/svg.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/articles/features/svg.md b/doc/articles/features/svg.md index 9b940d537206..2a46d4442807 100644 --- a/doc/articles/features/svg.md +++ b/doc/articles/features/svg.md @@ -26,6 +26,12 @@ On Desktop Skia and WebAssembly, the feature is enabled by default. To include an SVG file, you will need to place it in a folder named `Svg` (e.g. `Assets\Svg\MyFile.svg`). This is required in order to avoid [Uno.Resizetizer](xref:Uno.Resizetizer.GettingStarted) transform the file into a set of scaled PNGs files. +Now, you can display the SVG image in an `Image` by referencing it from the `Source` property. For example: + +```xml + +``` + ## [**Legacy Project**](#tab/legacyproject) To use SVG, install the following NuGet packages into the iOS, macOS, Mac Catalyst, Android, and Skia projects: @@ -42,14 +48,14 @@ To use SVG, install the following NuGet packages into the iOS, macOS, Mac Cataly Add the SVG Image to the app project and make sure that the build action is set to Content. ---- - Now, you can display the SVG image in an `Image` by referencing it from the `Source` property. For example: ```xml ``` +--- + You can also explicitly use `SvgImageSource`: ```xml