tags:

views:

33

answers:

1

Can someone explain this XAML statement, particularly what is the Resolve?

<MenuItem Header="_Load File" Command="{Resolve {Type Commands:LoadFile}}" />

This snippet was taken from NHprof.exe MainMenu.xaml file, using reflector.

+1  A: 

Since it is in {}, this is a MarkupExtension. In this case it is a custom extension called ResolveExtension (by convention, the Extension suffix is not needed). So look in the code for the class ResolveExtension.

Daniel Rose
In which namespace?
Mendy
Thanks, find it. `Caliburn.PresentationFramework.ResolveExtension`.
Mendy