fluentribbon / Fluent.Ribbon

WPF Ribbon control like in Office
http://fluentribbon.github.io
MIT License
2.48k stars 515 forks source link

Using ObjectToImageConverter via StaticResource raises an exception #1152

Closed nishy2000 closed 11 months ago

nishy2000 commented 11 months ago

Using ObjectToImageConverter via StaticResource raises an ArgumentNullException exception.

ex) a part of ControlTemplate definition

<ContentPresenter x:Name="iconImage"
    HorizontalAlignment="Center"
    Height="32"
    VerticalAlignment="Center"
    Content="{Binding LargeIcon, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource StringToImageConvert}}" 
    Width="32"
    Margin="3,2,3,1"
    SnapsToDevicePixels="True">

The issue appears to have occurred when ObjectToImageConverter added support for the MarkupExtension interface. I will create a pull request for this issue later.


Environment