Xceed SmartUI for WinForms v3.6 Documentation
UIStyleResourceAssembly Property
Example 


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartControl Class : UIStyleResourceAssembly Property
Gets or sets the assembly representing the resource from which the style is loaded.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<DefaultValueAttribute()>
Public Property UIStyleResourceAssembly As Assembly
'Usage
 
Dim instance As SmartControl
Dim value As Assembly
 
instance.UIStyleResourceAssembly = value
 
value = instance.UIStyleResourceAssembly
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DefaultValue()]
public Assembly UIStyleResourceAssembly {get; set;}

Property Value

A reference to an System.Reflection.Assembly resource from which the style is loaded. If a null reference (Nothing in Visual Basic) and the value of the UIStyle property is set to ResourceAssembly, the blue Windows XP theme will be used.
Remarks

The assembly assigned to the UIStyleResourceAssembly property is only taken into consideration when UIStyle is set to ResourceAssembly.

Example
The following example demonstrates how to load the Olive Green Windows XP style from the Xceed.SmartUI.UIStyle.WindowsXP.OliveGreen.DLL assembly.
Dim taskPane As New SmartExplorerTaskPane()

taskPane.UIStyleResourceAssembly = [Assembly].LoadFrom( "C:\MyApplication\Xceed.SmartUI.UIStyle.WindowsXP.OliveGreen.DLL" )
taskPane.UIStyle = UIStyle.ResourceAssembly
SmartExplorerTaskPane taskPane = new SmartExplorerTaskPane();

taskPane.UIStyleResourceAssembly = Assembly.LoadFrom( "C:\\MyApplication\\Xceed.SmartUI.UIStyle.WindowsXP.OliveGreen.DLL" );
taskPane.UIStyle = UIStyle.ResourceAssembly;
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

SmartControl Class
SmartControl Members