Could you share a little more information about what's not working? What errors are you getting or what behavior do you see? What does you app look like (map, layers etc)?
Could you share a simple app that reproduces the problem?
The line of xaml you show above is the exact same as in the SDK and that works fine for me.