WPF confirms dynamic load data completion

Source: Internet
Author: User

The entire WPF program is generated from the read XML file, so when the number is large and the structure is complex, a window appears with a blank (I set the background color here, so the black screen is displayed, the default is blank), and then the control is displayed.

But now the request must be done after the control display is done, the first is to use the loaded event, the results found no, because it is UserControl nested into the window, and the use of UserControl loaded event, or not, Finally the use of contentrendered, finally solved.

After solving the problem: I see the life cycle of the WPF window is contentrendered before loaded, why this time with contentrendered can loaded not, is I read the data is wrong, the order is reversed, or other reasons?

Record it first, and look back at the information again.

WPF confirms dynamic load data completion

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.