Showing posts with label ribbon. Show all posts
Showing posts with label ribbon. Show all posts

Sunday, March 13, 2011

Hiding the wpf ribbon application menu

Setting The Application Menu to x:Null or simple not setting any value for the application menu does not work and you still see the ribbon menu button :


But it can be hidden by setting the Ribbon.ApplicationMenu to a dummy item and set its visibility to Collapsed.


You will (ofcourse) still see the button at design time but when you run the application it will be hidden :)


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>