Silverlight SDK for Microsoft Bing
LoadResource Method (assemblyType, resourceName)
OverviewSystem.Windows.ControlsContentControlBaseLoadResource(Type, String)
Loads a Xaml resource from an Assembly-based resource
Declaration Syntax
C#Visual BasicVisual C++
public virtual void LoadResource(
	Type assemblyType,
	string resourceName
)
Public Overridable Sub LoadResource ( _
	assemblyType As Type, _
	resourceName As String _
)
public:
virtual void LoadResource(
	Type^ assemblyType, 
	String^ resourceName
)
Parameters
assemblyType (Type)
A Type which is housed in the assembly where the desired resource is located
resourceName (String)
The identifier for the resource to be loaded
Examples
ContentControlBase control = FindName("MyContentControl"); control.LoadResource(MyCompany.Controls.MyControlType, "MyCompany.Resources.SomeXamlGraphic.xaml");

Assembly: System.Windows.Controls.Views.Toolkit (Module: System.Windows.Controls.Views.Toolkit) Version: 1.0.0.0 (1.0.0.0)