1
我使用fluent.codeplex.com的Fluent。WPF 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資源? – CodeNaked 2011-04-03 00:28:49