I suggest you ...

Image Source

<Image x:Name="Img1" Source="Images/img1.jpg" />
it doesn't work and give me message

Current version only supports absolute URIs that start with http:// or https:// or that are in the form of \"ms-appx:///AssemblyName/Folder/FileName\" or \"/AssemblyName;component/Folder/FileName\" - Try adding ms-appx:///YourAssemblyName/ to the beginning of your path."}

25 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Nikolay Moryakov shared this idea  ·   ·  Admin →
    completed  ·  AdminJS-Support (CSHTML5 Support, cshtml5) responded  · 

    Hi,

    We are pleased to inform you that it is now possible to specify relative paths in in XAML.

    You can download the latest version of C#/XAML for HTML5 (aka CSHTML5) from:

    http://forums.cshtml5.com/viewforum.php?f=6

    By the way, the latest version adds support for VS 2017 as well.

    You can send feedback by posting on the forums or by sending an email to support@cshtml5.com

    Your UserVoice votes have been given back to you. You can use them to vote for other features on http://cshtml5.uservoice.com

    Thank you for your valuable feedback!

    Regards,
    The CSHTML5 Team

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base