Skip to content

Commit 9ff5339

Browse files
authored
Fix images in AvaloniaExamples project (#56)
1 parent b9feb1c commit 9ff5339

File tree

1 file changed

+1
-1
lines changed
  • Source/Examples/Avalonia/AvaloniaExamples

1 file changed

+1
-1
lines changed

Source/Examples/Avalonia/AvaloniaExamples/Example.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Example(Type mainWindowType, string title = null, string description = nu
2323
this.Description = description;
2424
try
2525
{
26-
var uri = new Uri("resm:AvaloniaExamples.Images." + this.ThumbnailFileName);
26+
var uri = new Uri($"avares://{typeof(Example).Assembly.FullName}/Images/" + this.ThumbnailFileName);
2727
var stream = AssetLoader.Open(uri);
2828
this.Thumbnail = new Bitmap(stream);
2929
}

0 commit comments

Comments
 (0)