Skip to content

Using ObjectToImageConverter via StaticResource raises an exceptionΒ #1152

@nishy2000

Description

@nishy2000

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

  • Fluent.Ribbon v7.0.0 - v10.0.0
  • Windows 10/11
  • .NET Framework 4.6.2 / .NET 3.1/.5.0/7.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions