Win8 development journey (2)-Summary of errors in the development projects of the connected games

Source: Internet
Author: User

Because Microsoft is so powerful, you copy the source code of WP7 without modifying the source code of a line, compile it, and run OK?

This may only exist in the utopia of the program.

First, a compilation gave me a lower limit with 119 errors. Shit. No way, change it... Later, I found out that the compiler should not be blamed. Most of them are named by myself. But two errors make me

The memory is still fresh. One is system. Windows. UI. imaging, which is available in the Silverlight web. Later I changed to system. Windows. Media. imaging,

This is the case with system. Windows. Media. imaging. bitmapimage on msdn.

Provides a dedicated imagesource for loading image optimization using eXtensible Application Markup Language (XAML.

Another depressing thing is that image does not have the mouseleftbuttonup or mouseleftbuttondown event. This is a good user experience. What to do.

I found two solutions, one of which redefined two extended events for the image. But the image is sealed! One is tapped and the other is tapped.

Righttapped event. In this way, you can play. However, the user experience is too bad. You can click the right button to delete it.

In this way, the compilation is successful, and there is another tricky problem. I cannot load the image. At first, I set the image to a relative path. This error is always included;

The specified system. Uri cannot be converted to Windows. Foundation. Uri. For more information, see http://go.microsoft.com/fwlink? Linkid = 215849.

Error:

Later, Google decided to have an absolute path. However, I started to use c: \ llk \ resources.

Finally, I published the HTTP path through IIS. The final source code is "http: // localhost/resources/" + item. img

So there is OK, the two errors are bigger than the demo itself.

In fact, it doesn't make much sense for the project owner to do. The key is how many errors you solve and how many errors you have solved. This is what your experience is. Both work and study are the same.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.