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