Version

SmallImage Property (GalleryTool)

Returns/sets the 16x16 image to be used when the tool is sized to ImageOnly or ImageAndTextNormal.
Syntax
'Declaration
 
Public Property SmallImage As ImageSource
public ImageSource SmallImage {get; set;}
Example
The following example shows how to use the LargeImage and SmallImage property to specify according 32x32 or 16x16 image to be used in tool.

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 SetupGalleryTool()
            galleryTool.SmallImage = New BitmapImage(New Uri("\Images\ig_office_icon_16.png", UriKind.Relative))
            galleryTool.LargeImage = New BitmapImage(New Uri("\Images\ig_office_icon_32.png", UriKind.Relative))
        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 SetupGalleryTool()
        {
            galleryTool.SmallImage = new BitmapImage(new Uri("\\Images\\ig_office_icon_16.png", UriKind.Relative));
            galleryTool.LargeImage = new BitmapImage(new Uri("\\Images\\ig_office_icon_32.png", UriKind.Relative));
        }
    }
}
<igRibbon:XamRibbonWindow x:Class="MyWindow"
    
xmlns:igRibbon="http://infragistics.com/Ribbon">

    ....

    
<igRibbon:RibbonGroup Id="groupId" Caption="GroupName">
        
<igRibbon:MenuTool ShouldDisplayGalleryPreview="True" Caption="GalleryToolMenu">
            
<igRibbon:GalleryTool Name="galleryTool"
                  
LargeImage="\Images\ig_office_icon_32.png"
                  
SmallImage="\Images\ig_office_icon_16.png">
                ....
            
</igRibbon:GalleryTool>
        
</igRibbon:MenuTool>
    
</igRibbon:RibbonGroup>

    ....

</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