Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm not familiar with the Fluent Ribbon component, but looking through the source code, it uses this to display the button icon:</p> <p><a href="http://fluent.codeplex.com/SourceControl/changeset/view/57318#527240" rel="nofollow">http://fluent.codeplex.com/SourceControl/changeset/view/57318#527240</a></p> <pre><code>&lt;ContentPresenter ... Content="{Binding LargeIcon, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource StringToImageConvert}}" /&gt; </code></pre> <p>The <code>StringToImageConvert</code> is defined as:</p> <pre><code>&lt;Fluent:ObjectToImageConverter x:Key="StringToImageConvert"/&gt; </code></pre> <p>The implementation of the Convert method in that converter looks like this (via reflector - the Fluent developers need to seperate classes into their own files better).</p> <pre><code>public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is string) { Image image = new Image(); image.Stretch = Stretch.None; image.Source = new BitmapImage(new Uri(value as string, UriKind.RelativeOrAbsolute), new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore)); return image; } if (value is ImageSource) { Image image2 = new Image(); image2.Stretch = Stretch.None; image2.Source = (ImageSource) value; return image2; } return value; } </code></pre> <p>So judging from the code, your best bet is to try this:</p> <pre><code>&lt;Fluent:Button Header="adsfasf" Icon="{StaticResource error_button}" LargeIcon="{StaticResource error_button}" /&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload