Two tips.

Source: Internet
Author: User
I failed to write it for several days.
In the past few days, I have no idea where I went. I did not do anything, but I am busy and tired.
Let's talk about the gains over the past two days.
1. After editing the page in WPF, save the prompt settings in the dialog box:
If the page element is not changed, you do not need to pop up the Save dialog box when you close the page.
However, you need to set the settings after the changes. Before setting the settings, you must first judge:
If there are 10 elements on the page (you can change the Elements of the content on the page), first set a global Boolean variable flag to the initial value of flase, and then in the changed event of each element (such as txtparameters_textchanged, cbotype_selectionchanged) set the flag value to true;
Set the flag value to false in the close button or click event of the Save button on the page. The basic idea is this. I don't know if there are any better methods.
2. Today I am suffering from a day's problem, which was resolved by one of my senior colleagues. The scenario at that time was really nice to find a hole for drilling.
It is about the usage of listview. Items. sourcecollection. When obtaining listview. Items. sourcecollection, you should lose the focus of listview to obtain the complete listview value. Otherwise, hey. It's been a long time for research. I didn't know it at the time. It's a silly thing !!! I really want to give myself a big mouth.
That's it. It's really depressing !!!

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.