【发布时间】:2011-07-28 10:56:18
【问题描述】:
我正在使用来自 fluent.codeplex.com 的 Fluent。
这适用于我的 XAML 文件:
<Image Name="image1" Stretch="Fill" Height="40"
HorizontalAlignment="Left"
VerticalAlignment="Top" Width="40"
Source="{StaticResource error_button}" />
并显示图像。
当我尝试将它用作流畅按钮的图标时
<Fluent:Button Header="adsfasf">
<Fluent:Button.Icon>
<Image Height="40" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40"
Source="{StaticResource error_button}" />
</Fluent:Button.Icon>
</Fluent:Button>
按钮没有图标。我错过了什么吗?
【问题讨论】:
-
你能说明你是如何定义error_button资源的吗?
标签: wpf binding icons ribbon fluent