Version

ImageResolved Property (GalleryTool)

Returns the image to be used by the tool based on its current location and sizing mode.
Syntax
'Declaration
 
Public ReadOnly Property ImageResolved As ImageSource
public ImageSource ImageResolved {get;}
Example
The following example shows how to use the ImageResolved property to get the image to be used by the tool based on its current location and sizing mode.

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()
            If (galleryTool.ImageResolved IsNot Nothing) AndAlso (galleryTool.ImageResolved.Width <= 16) Then
                ' gallery has small image resolved
            ElseIf (galleryTool.ImageResolved IsNot Nothing) AndAlso (galleryTool.ImageResolved.Width > 16) Then
                ' gallery has large image resolved
            Else
                ' do some thing 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()
        {
            if ((galleryTool.ImageResolved != null)&&
                (galleryTool.ImageResolved.Width <= 16))
            {
                // gallery has small image resolved
            }
            else if ((galleryTool.ImageResolved != null) &&
                (galleryTool.ImageResolved.Width > 16))
            {
                // gallery has large image resolved
            }
            else
            {
                // some thing else
            }
	    }
    }
}
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