AvaloniaUi で ImageSource を定義しようとしています。WPFでは、私はこのように行っていました:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ImageSource x:Key="Icon">path/to/image/image.png</ImageSource>
</ResourceDictionary>
そして、次のように参照します。
<Image Source="{StaticResource Icon}"/>
どうすればAvaloniaで同じものをアーカイブできますか?