Problem with icon binding

Apr 3, 2011 at 12:00 AM

This works in my XAML file:

  <Image Name="image1" Stretch="Fill" Height="40" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Source="{StaticResource error_button}" />

and displays the image.

When I try to use it as an icon for fluent 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>

the button has no icon. Am I missing something?

 

Apr 10, 2011 at 1:52 PM

In my code I use the following code:

<Fluent:Button Fluent:KeyTip.Keys="A" Header="{Binding AddElement}" Command="{Binding AddElementCommand}" Icon="{StaticResource addelement_small}" LargeIcon="{StaticResource addelement_large}" SizeDefinition="Small" />

try to use this instead, it should work