Silverlight SDK for Microsoft Bing
TryLoadResource Method (path)
OverviewSystem.Windows.ControlsResourceControlTryLoadResource(ResourcePath)
Attempts to load a Xaml resource from an Assembly-based resource
Declaration Syntax
C#Visual BasicVisual C++
public bool TryLoadResource(
	ResourcePath path
)
Public Function TryLoadResource ( _
	path As ResourcePath _
) As Boolean
public:
bool TryLoadResource(
	ResourcePath^ path
)
Parameters
path (ResourcePath)
A ResourcePath which identifies the resource to load
Return Value
A boolean value indicating whether the resource was loaded successfully
Examples
ResourceControl control = new ResourceControl(); ResourcePath path = new ResourcePath(MyCompany.Controls.MyControlType, "MyCompany.Resources.SomeXamlGraphic.xaml"); if (!control.LoadResource(path)) { //Do Something }

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