Xceed Pro Themes for WPF v3.0 Documentation
StyleUsageMode Enumeration


Xceed.Wpf.Themes Assembly > Xceed.Wpf.Themes Namespace : StyleUsageMode Enumeration
Value indicating whether styles will be applied implicitly or explicitly.
Syntax
'Declaration
 
Public Enum StyleUsageMode 

   Inherits System.Enum
'Usage
 
Dim instance As StyleUsageMode
public enum StyleUsageMode : System.Enum 
Members
MemberDescription
ExplicitStyles will be applied explicitly. (Defined styles will not be overridden.)
ImplicitStyles will be applied implicitly (automatically).
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>
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Xceed.Wpf.Themes.StyleUsageMode

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

Xceed.Wpf.Themes Namespace