Must compile XAML file that specifies events
-
When working with a XAML file in conjunction with JavaScript and HTML in VisualStudio, whenever I try to set the Loaded attribute in my Grid, my XAML page will fail to load. I get a blank screen and when I right click somewhere in the page, I see a little box saying 'Silverlight'. The JavaScript will also fail to execute. I get the following message when I try to open the page in Internet Explorer: "Must compile XAML that specifies events". Surprisingly, the other XAML page (Speeds.xaml) I have does not fail to execute the JS nor the XAML. It runs properly. Failing XAML file (Accuracy.xaml):
Accuracy
-
When working with a XAML file in conjunction with JavaScript and HTML in VisualStudio, whenever I try to set the Loaded attribute in my Grid, my XAML page will fail to load. I get a blank screen and when I right click somewhere in the page, I see a little box saying 'Silverlight'. The JavaScript will also fail to execute. I get the following message when I try to open the page in Internet Explorer: "Must compile XAML that specifies events". Surprisingly, the other XAML page (Speeds.xaml) I have does not fail to execute the JS nor the XAML. It runs properly. Failing XAML file (Accuracy.xaml):
Accuracy
Yes you have the answer, you must compile XAML to BAML in order to use events! This is what that is done while compiling an app in visual studio. I guess you are trying with an XAML browser project??
-
Yes you have the answer, you must compile XAML to BAML in order to use events! This is what that is done while compiling an app in visual studio. I guess you are trying with an XAML browser project??
No, I do not have the answer. The problem is not 'Must compile XAML that specifies events'. The problem is that Visual Studio does not accept XAML files that have Elements whose Background property is set. On my machine it is not compatible with the Background property for some reason. After I set any Background property on my XAML page and I run my project, Visual Studio will show a white page in my Accuracy.html. Everything is white. No content. I am trying to understand why Visual Studio does not accept this Background property.
-
No, I do not have the answer. The problem is not 'Must compile XAML that specifies events'. The problem is that Visual Studio does not accept XAML files that have Elements whose Background property is set. On my machine it is not compatible with the Background property for some reason. After I set any Background property on my XAML page and I run my project, Visual Studio will show a white page in my Accuracy.html. Everything is white. No content. I am trying to understand why Visual Studio does not accept this Background property.
Strange?? I do files with a great deal of backgrounds with fancy gradients, images... designed with blend of course?? Well mine is vs2012? yours??