ResourceDictionary Property="Icon"?

Jul 17, 2014 at 6:26 AM
Hi,

Not having success in setting the Property="Icon" in a ResourceDictionary.

1) I properly added a new App Project to convert to a Library. All Good!
2) Can set the Icon normally in my UserControl using:
<Fluent:Button Header="Exit" Icon="/NathsarTS.Resource;component/Images/Close_16x16.png" />
but, I can't set the Icon using:
<Fluent:Button Header="Exit" Style="{StaticResource FluentButtonExitCommand}" />
ResourceDictionary:
<Style TargetType="Fluent:Button" x:Key="FluentButtonExitCommand">
    <Setter Property="Command" Value="{Binding DataContext.ExitCommand, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
    <Setter Property="Icon" Value="/NathsarTS.Resource;component/Images/Close_16x16.png"/>
</Style>   
Why?
Developer
Jul 23, 2014 at 8:53 PM
Did you try adding "pack://application:,,," as prefix?