Tuesday, January 11, 2011

Bad Image quality in WPF ribbon

The ribbon from Microsoft performs great with XAML resources however it always made my images look bad. I actually avoided using it for this reason. But Sacha just posted a great solution here : http://sachabarber.net/?p=847 He did it for Images in WPF 4 in general. I just wanted to mention that it makes image quality in Ribbon improve as well. Here is the style he used:


<Window.Resources>
    <Style TargetType="{x:Type Image}">
        <Setter Property="RenderOptions.BitmapScalingMode"
               Value="HighQuality" />
    </Style>
</Window.Resources>