Xceed Grid for WinForms v4.3 Documentation
ResourceAssembly Property (ThemedControl)
Example 


Xceed.UI.v1.4 Assembly > Xceed.UI Namespace > ThemedControl Class : ResourceAssembly Property
Gets or sets the assembly representing the resource from which the UI style is loaded.
Syntax
'Declaration
 
<DescriptionAttribute("Indicates the assembly representing the resource from which the UI style is loaded.")>

<DefaultValueAttribute("")>

<BrowsableAttribute(False)>

Public Property ResourceAssembly As Assembly
'Usage
 
Dim instance As ThemedControl

Dim value As Assembly

 

instance.ResourceAssembly = value

 

value = instance.ResourceAssembly
[Description("Indicates the assembly representing the resource from which the UI style is loaded.")]

[DefaultValue("")]

[Browsable(false)]

public Assembly ResourceAssembly {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 ResourceAssembly 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.UI.WindowsXP.OliveGreen.DLL assembly.
Dim button As New WinButton() button.ResourceAssembly = [Assembly].LoadFrom( "C:\MyApplication\Xceed.UI.WindowsXP.OliveGreen.DLL" ) button.UIStyle = Xceed.UI.UIStyle.ResourceAssembly
WinButton button = new WinButton(); button.ResourceAssembly = Assembly.LoadFrom( "C:\\MyApplication\\Xceed.UI.WindowsXP.OliveGreen.DLL" button.UIStyle = Xceed.UI.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

ThemedControl Class
ThemedControl Members