The problem must be in the third-party control you use. Here is some theory: in order for the x:Name
of a control to work, that control should be placed in the ContentProperty
of the control it's placed in. Currently in Silverlight if you set the ContentProperty
of a custom control this wouldn't work due to a bug in the plugin. So, if the third-party control you use is not based on say ContentControl
, this may be why the context menu is null
- it cannot be found by its x:Name
. It may sound a bit complicated but that would be my guess. If you were using one of our controls I could investigate further, but there is nothing I can do with a third-party control.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.