Silverlight SDK for Microsoft Bing
TryLoadResource Method (assemblyType, resourceName)
OverviewSystem.Windows.ControlsContentControlBaseTryLoadResource(Type, String)
Attempts to load an assembly-based Xaml resource
Declaration Syntax
C#Visual BasicVisual C++
public bool TryLoadResource(
	Type assemblyType,
	string resourceName
)
Public Function TryLoadResource ( _
	assemblyType As Type, _
	resourceName As String _
) As Boolean
public:
bool TryLoadResource(
	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"); if (!control.TryLoadResource(MyCompany.Controls.MyControlType, "MyCompany.Resources.SomeXamlGraphic.xaml")) { //Do Something }

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