图像无法在 WPF 功能区控件中正确呈现

Images do not render correctly in WPF ribbon control

我刚刚购买了一些图像集用于 WPF 功能区控件。图像完美无暇;但是,它们无法在控件中正确呈现。

无论是小图还是大图都没有正确渲染。我尝试了不同的图像尺寸,但似乎没有任何区别。

我有一系列不同的图像尺寸可供选择。这是我的 XAML.

的片段
<RibbonTab Header="Edit">
    <RibbonGroup Header="Clipboard">
         <RibbonButton Label="Paste" LargeImageSource="Images\paste.png" ToolTipFooterTitle="" ToolTipImageSource="Images/paste_sm.png" ToolTipTitle="Paste" ToolTipDescription="Insert text from the clipboard at the current location"></RibbonButton>
         <RibbonButton Label="Cut" SmallImageSource="Images\cut_sm.png" ToolTipDescription="Cut the selected text" ToolTipTitle="Cut" ToolTipImageSource="Images/cut.png"></RibbonButton>
         <RibbonButton Label="Copy" SmallImageSource="Images\copy_sm.png" ToolTipDescription="Copy the selected text" ToolTipTitle="Copy" ToolTipImageSource="Images/copy.png"></RibbonButton>
         <RibbonButton Label="Select All" ToolTipDescription="Select all text in document" ToolTipTitle="Select All"></RibbonButton>
     </RibbonGroup>
</RibbonTab>

我是 WPF 的新手,很惊讶我不得不为这样的问题而苦苦挣扎。

有谁知道如何使我的图像正确呈现?

在 RibbonButtons 上为 RenderOptions.BitmapScalingMode 尝试几个不同的选项。我发现有时 NearestNeighbor 效果更好。 UseLayoutRounding="True" 也可能有帮助。