Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Must compile XAML file that specifies events

Must compile XAML file that specifies events

Scheduled Pinned Locked Moved WPF
javascripthtmlcsswpf
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neo10101
    wrote on last edited by
    #1

    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
    
    A 1 Reply Last reply
    0
    • N Neo10101

      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
      
      A Offline
      A Offline
      AlphaDeltaTheta
      wrote on last edited by
      #2

      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??

      N 1 Reply Last reply
      0
      • A AlphaDeltaTheta

        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??

        N Offline
        N Offline
        Neo10101
        wrote on last edited by
        #3

        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.

        A 1 Reply Last reply
        0
        • N Neo10101

          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.

          A Offline
          A Offline
          AlphaDeltaTheta
          wrote on last edited by
          #4

          Strange?? I do files with a great deal of backgrounds with fancy gradients, images... designed with blend of course?? Well mine is vs2012? yours??

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups