【发布时间】:2018-10-10 09:35:08
【问题描述】:
我尝试使用 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 中存档?
【问题讨论】:
标签: wpf xaml avaloniaui