バージョン

GalleryItemPresenterStyle プロパティ

GalleryItem を表示するために使用される GalleryItemPresenter のスタイルを返す/設定します。
シンタックス
'宣言
 
Public Property GalleryItemPresenterStyle As Style
public Style GalleryItemPresenterStyle {get; set;}
使用例
<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>
参照