tags:

views:

559

answers:

1

Hi,

Related to an earlier question I asked, I've seen that there's both LoadComponent() and XamlReader.Load(). They're similar enough that I'm not quite sure which one I should use in what case.

So, in essence, what's the difference between the two?

Thanks!

+2  A: 

MSDN:

Speculation
I would guess that LoadComponant calls XamlReader.Load. LoadComponant looks more like an application level service and is probably used by the application itself to load all of the xaml resources. XamlReader is the specific library call for what you want.

Think about it as LoadComponant is an Application Service where XamlReader is the library containing the functionality.

Alan Jackson