Xceed Pro Themes for WPF v3.0 Documentation
StyleUsageMode Property


Xceed.Wpf.Themes Assembly > Xceed.Wpf.Themes Namespace > ThemeResourceDictionary Class : StyleUsageMode Property
Gets or sets the mode that will be used by the theme resource dictionary.
Syntax
'Declaration
 
Public Property StyleUsageMode As StyleUsageMode
'Usage
 
Dim instance As ThemeResourceDictionary
Dim value As StyleUsageMode
 
instance.StyleUsageMode = value
 
value = instance.StyleUsageMode
public StyleUsageMode StyleUsageMode {get; set;}
Remarks
If StyleUsageMode property of the resource dictionary is set to Explicit, the style for each control must then be set manually.
Example

The following example shows how to set the style for a Button control manually. The StyleUsageMode property of the resource dictionary has been set to Explicit.

XAML Copy Code
<Window.Resources>  
   <xcpt:GlassResourceDictionary LicenseKey="XXXXX-XXXXX-XXXXX-XXXX" StyleUsageMode="Explicit" />  
</Window.Resources>  
  
<Grid>  
   <Button Style="{x:Static xcpt:GlassResources.ButtonStyle}" Height="23" Margin="49,0,0,34" Name="button1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="75">Button</Button>  
</Grid>
Requirements

Target Platforms: Windows 7, 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

Reference

ThemeResourceDictionary Class
ThemeResourceDictionary Members