Version

IsOnQat Property (GalleryTool)

Returns true if the tool (or an instance of the tool with the same Id) exists on the QuickAccessToolbar, otherwise returns false. (read only)
Syntax
'Declaration
 
Public ReadOnly Property IsOnQat As Boolean
public bool IsOnQat {get;}
Remarks

To determine whether a specific tool instance is directly on the Qat, check the Location property.

Example
The following example shows how to use the IsOnAqt property to determinate if the tool (or an instance of the tool with the same Id) exists on the QuickAccessToolbar.

Imports System
 Imports System.Windows
 Imports Infragistics.Windows.Ribbon


 Namespace MyNamespace
     Public Partial Class MyWindow
         Inherits XamRibbonWindow
         Public Sub New()
             InitializeComponent()
         End Sub
        
         Private Sub CheckGalleryTool()
            ' IsOnQat
            If galleryTool.IsOnQat Then
                ' do something if gallery is on QAT
            Else
                ' do something else
            End If
         End Sub
     End Class
End Namespace
using System;
using System.Windows;
using Infragistics.Windows.Ribbon;


namespace MyNamespace
{
    public partial class MyWindow : XamRibbonWindow
    {
        public MyWindow()
        {
            InitializeComponent();
        }

        private void CheckGalleryTool()
        {
            // Is on AQT
            if (galleryTool.IsOnQat)
            {
                // do something if gallery is on qat
            }
            else
            {
                // do something else
            }
		   }
    }
}
<igRibbon:XamRibbonWindow x:Class="SnippetApp.Window1"
    
xmlns:igRibbon="http://infragistics.com/Ribbon">

        
<igRibbon:RibbonWindowContentHost.Resources>
            
            
<Style x:Key="galleryStyle" TargetType="{x:Type igRibbon:GalleryTool}">
                
<Style.Triggers>
                    
<Trigger Property="IsOnQat" Value="True">
                        
<Setter Property="RenderTransform">
                            
<Setter.Value>
                                
<RotateTransform Angle="10"/>
                            
</Setter.Value>
                        
</Setter>
                    
</Trigger>
        
</Style.Triggers>
        
</Style>
        
<igRibbon:RibbonWindowContentHost.Resources>

    ....

    
<igRibbon:GalleryTool Name="galleryTool" Style="{StaticResource galleryStyle}"/>

    ....

</igRibbon:XamRibbonWindow>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also