Looks like you didn't create the GraphicsLayer in XAML.In the sample you pointed out, there is this XAML line: <esri:GraphicsLayer ID="MyGraphicsLayer" />Check that you didn't forget it in your project.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.