Version

Theme Property (XamDockManager)

Gets/sets the default look for the control.
Syntax
'Declaration
 
Public Property Theme As String
public string Theme {get; set;}
Remarks

If left set to null then the default 'Generic' theme will be used. This property can be set to the name of any registered theme (see Infragistics.Windows.Themes.ThemeManager.Register(System.String,System.String,System.Windows.ResourceDictionary) and Infragistics.Windows.Themes.ThemeManager.GetThemes methods).

Example
In this sample, the Theme property is bound to a combobox that contains a list of the available themes. As the theme is changed, the XamDockManager and its related elements are updated based on the information in the selected theme.

<DockPanel xmlns:sys="clr-namespace:System;assembly=mscorlib"
           
xmlns:igThemes="http://infragistics.com/Themes">
    
<DockPanel.Resources>
        
<ObjectDataProvider MethodName="GetThemes"
            
ObjectType="{x:Type igThemes:ThemeManager}"
            
x:Key="ThemeValues">
            
<ObjectDataProvider.MethodParameters>
                
<sys:Boolean>True</sys:Boolean>
            
</ObjectDataProvider.MethodParameters>
        
</ObjectDataProvider>
    
</DockPanel.Resources>
    
<ComboBox x:Name="cboTheme"
              
DockPanel.Dock="Top"
              
ItemsSource="{Binding Source={StaticResource ThemeValues}}"/>
    
<igDock:XamDockManager Theme="{Binding Path=SelectedItem, ElementName=cboTheme}">
        
<igDock:XamDockManager.Panes>
            
<igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedLeft">
                
<igDock:ContentPane Header="Toolbox" />
            
</igDock:SplitPane>
            
<igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedBottom">
                
<igDock:ContentPane Header="Output" Content="Output" />
                
<igDock:ContentPane Header="Commands" Content="" IsPinned="False" />
            
</igDock:SplitPane>
            
<igDock:SplitPane igDock:XamDockManager.InitialLocation="DockableFloating">
                
<igDock:TabGroupPane>
                    
<igDock:ContentPane Header="Solution Explorer" Content="Files" />
                    
<igDock:ContentPane Header="Class View" Content="Classes" />
                
</igDock:TabGroupPane>
            
</igDock:SplitPane>
        
</igDock:XamDockManager.Panes>
        
<igDock:DocumentContentHost>
            
<igDock:SplitPane>
                
<igDock:TabGroupPane>
                    
<igDock:ContentPane Header="File 1" />
                    
<igDock:ContentPane Header="File 2" />
                
</igDock:TabGroupPane>
            
</igDock:SplitPane>
        
</igDock:DocumentContentHost>

    
</igDock:XamDockManager>
</DockPanel>
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