Version

GalleryItemPresenterStyle Property

Returns/sets the Style for the GalleryItemPresenter that is used to display the GalleryItem.
Syntax
'Declaration
 
Public Property GalleryItemPresenterStyle As Style
public Style GalleryItemPresenterStyle {get; set;}
Example
The following example shows how to use the GalleryItemPresenterStyle property to specify the new item style.

<igRibbon:XamRibbonWindow x:Class="SnippetApp.Window1"
    
xmlns:igRibbon="http://infragistics.com/Ribbon">

        
<igRibbon:RibbonWindowContentHost.Resources>
        
<Style x:Key="galleryPresentStyle" BasedOn="{x:Null}" TargetType="{x:Type igRibbon:GalleryItemPresenter}">
                
<Setter Property="Template">
                    
<Setter.Value>
                        
<ControlTemplate TargetType="{x:Type igRibbon:GalleryItemPresenter}">
                            
<Grid>
                                
<TextBlock Text="{Binding Path=Text}" Foreground="Purple"/>
                            
</Grid>
                        
</ControlTemplate>
                    
</Setter.Value>
                
</Setter>
            
</Style>            
        
<igRibbon:RibbonWindowContentHost.Resources>

    ....

        
<igRibbon:RibbonGroup Id="groupId" Caption="Group">
            
<igRibbon:MenuTool ShouldDisplayGalleryPreview="True" Caption="GalleryToolMenu">
                
<igRibbon:GalleryTool Name="galleryTool" ItemBehavior="StateButton">

                    
<igRibbon:GalleryTool.ItemSettings>
                        
<igRibbon:GalleryItemSettings GalleryItemPresenterStyle="{DynamicResource galleryPresentStyle}"/>
                    
</igRibbon:GalleryTool.ItemSettings>   
                    
                    
<igRibbon:GalleryTool.Items> 
                        
<igRibbon:GalleryItem Key="Item1" Text="Item1" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item2" Text="Item2" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item3" Text="Item3" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item4" Text="Item4" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item5" Text="Item5" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item6" Text="Item6" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item7" Text="Item7" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item8" Text="Item8" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item9" Text="Item9" Image="\Images\ig_office_icon_16.png"/>
                        
<igRibbon:GalleryItem Key="Item10" Text="Item10" Image="\Images\ig_office_icon_16.png"/>  
                        
<igRibbon:GalleryItem Key="Item11" Text="Item11" Image="\Images\ig_office_icon_16.png"/>
                    
</igRibbon:GalleryTool.Items>
                
</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