In Windows phone, the listbox can load data in the WP8 wp7.x problem

Source: Internet
Author: User
Tags modifiers

First, the WP8 and wp7.8 simulators run the same program.

The main task of the homepage is to read the class that is the data source in the background and then display it on the listbox of the homepage.

As shown in Figure 2, a single item is added to the emulator

And it all shows up correctly.

But what happens if the class that is the data source gets rid of the public?

After removing the public of that class from the data source, deploy it again to 2 simulators to discover that WP8 's simulator shows everything is fine, and the wp7.8 doesn't.

And then try to deploy to your own lumia800 to test that the effect is not as good as the 7.8 emulator.

It may not be scientific to explain this phenomenon.

But may WP8 be the default to treat classes as public or internal? Or does he automatically recognize the class as the data source and then give it to public?

And I heard it before. Access modifiers are just for the compiler to see

Whether you're private or public, or protect or internal,

In fact, the final compilation is the same data

Access modifiers are only checked for the compiler, for God's horse specification or something.

If this is the case, then 2 simulators should be able to be displayed, regardless of the addition of public.

There is no solution for this problem for the time being.

Related Article

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.