Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ObjectToImageConverter via StaticResource raises an exception #1152

Closed
nishy2000 opened this issue Jul 22, 2023 · 0 comments
Closed

Using ObjectToImageConverter via StaticResource raises an exception #1152

nishy2000 opened this issue Jul 22, 2023 · 0 comments
Labels
Milestone

Comments

@nishy2000
Copy link
Contributor

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
nishy2000 added a commit to nishy2000/Fluent.Ribbon that referenced this issue Jul 22, 2023
@batzen batzen added this to the 10.0.1 milestone Jul 23, 2023
@batzen batzen closed this as completed Jul 23, 2023
batzen added a commit that referenced this issue Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants