Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Some graphics are not grayed out in the ribbon.
posted

Hi!

I think it's quite similar to this thread, but no one replied to my post (because of the verified answer maybe).

I have the same problem with the disabled xaml icons and also with the menu tool. The menu indicator isn't grayed out, too. This bug is true for the application menu as well. Do you think you will improve your software in this case?

Here is a screenshot:

And here is the example code:

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:igRibbon="http://infragistics.com/Ribbon"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    x:Class="MainWindow"
    x:Name="Window"
    Title="MainWindow"
    Width="640" Height="480"
    mc:Ignorable="d">
    <Grid x:Name="LayoutRoot">
        <igRibbon:XamRibbon>
            <igRibbon:RibbonTabItem Header="RibbonTabItem">
                <igRibbon:RibbonGroup Caption="Group">
                    <igRibbon:MenuTool Caption="Security" igRibbon:RibbonGroup.MinimumSize="ImageAndTextLarge" IsEnabled="False"  SmallImage="{StaticResource Lock}">
                        <igRibbon:ButtonTool Caption="Item 1"/>
                        <igRibbon:ButtonTool Caption="Item 2"/>
                        <igRibbon:MenuTool Caption="Menu">
                            <igRibbon:ButtonTool Caption="Item 3"/>
                        </igRibbon:MenuTool>
                    </igRibbon:MenuTool>
                    <igRibbon:MenuTool Caption="Security" igRibbon:RibbonGroup.MinimumSize="ImageAndTextLarge" LargeImage="{StaticResource Lock}">
                        <igRibbon:ButtonTool Caption="Item 1"/>
                        <igRibbon:ButtonTool Caption="Item 2"/>
                        <igRibbon:MenuTool Caption="Menu" IsEnabled="False">
                            <igRibbon:ButtonTool Caption="Item 3"/>
                        </igRibbon:MenuTool>
                    </igRibbon:MenuTool>
                    <igRibbon:MenuTool Caption="Security" igRibbon:RibbonGroup.MinimumSize="ImageAndTextLarge" LargeImage="{StaticResource Lock}">
                        <igRibbon:ButtonTool Caption="Item 1"/>
                        <igRibbon:ButtonTool Caption="Item 2"/>
                        <igRibbon:MenuTool Caption="Menu">
                            <igRibbon:ButtonTool Caption="Item 3"/>
                        </igRibbon:MenuTool>
                        <igRibbon:MenuTool Caption="Menu" IsEnabled="False">
                            <igRibbon:ButtonTool Caption="Item 3"/>
                        </igRibbon:MenuTool>
                    </igRibbon:MenuTool>
                </igRibbon:RibbonGroup>
            </igRibbon:RibbonTabItem>
        </igRibbon:XamRibbon>
    </Grid>
</Window>

 

Kind regards,

SchoppeJantzen

  • 54937
    Verified Answer
    Offline posted

    The fact that the dropdown arrow does not change seems like a bug since that is something we can control in the template. The fact that a drawing image is not rendered as disabled is not a bug but as mentioned in the post to which you linked is a limitation. Basically WPF provides no support for rendering an ImageSource as disabled when the Image element is disabled. We have provided some support for this in our derived Image class but the approach used can only work for BitmapSource. At this point I don't know of a generic way to render a DrawingImage as disabled other than to possible use a pixel shader which we cannot do at this point since we need to support 3.0. Perhaps in a 4.0 targeted assembly we can consider using a pixel shader. I would recommend submitting a suggestion for this since the number of requests has an impact on what features are implemented.