This question is locked. New answers and comments are not allowed.
Hi,
Trying to load a RadMenu from a .xaml file. Here is the code
Now I've placed the menu.xaml file in the ClientBin Folder on the server. (Next to the .xap file) I have also marked this file as Content and Copy to Output Directory -> Copy always.
When I run the program it fails on :
Any ideas?
Trying to load a RadMenu from a .xaml file. Here is the code
<UserControl.DataContext>
<local:MenuViewModel Source="/Menu.xaml" />
</UserControl.DataContext>
Now I've placed the menu.xaml file in the ClientBin Folder on the server. (Next to the .xap file) I have also marked this file as Content and Copy to Output Directory -> Copy always.
When I run the program it fails on :
using (StreamReader reader = new StreamReader(
Application.GetResourceStream(this.Source).Stream))
NullReferenceException was unhandled by user code. (Basically saying the file wasn't found)
Any ideas?