Back to Uno

Include Image Csharp

doc/articles/getting-started/counterapp/includes/include-image-csharp.md

6.6-release-branch-cut228 B
Original Source
  • Open the MainPage.cs file.

  • Replace the TextBlock with the following Image element.

    csharp
    new Image()
        .Width(150)
        .Height(150)
        .Source("ms-appx:///Assets/logo.png")