Question: MIT 2 1 1 ADVANCED PROGRAMMING TECHN Students will be developing a WPF application that meets the requirements outlined below. Each student will produce a

MIT 211 ADVANCED PROGRAMMING TECHN Students will be developing a WPF application that meets the requirements outlined below. Each student will produce a report based on their design to submit on Canvas. The report should include screenshots of your coding and the necessary explanations. Additionally, the entire code should be submitted as a zip file. Submission Requirements: 1. A Word file. 2. A zip file. All submissions will go through a plagiarism detector. Note: This is an individual task. Note: You must include screenshots of your activities and the outcome of the code, followed by necessary explanations. WPF Simple Login System Introduction You are tasked with developing a simple WPF application that simulates a login system. The application will check if the user-provided username and password match predefined values. Problem Statement UI Design: 3. Input Section: TextBox controls for entering the username and password. A button labeled "Login". 4. Display Section: A TextBlock or Label to display the result of the login attempt ("Login successful!" or "Invalid credentials."). Functionality: 5. Login: Define two string variables for the username and password: Username: "admin" Password: "password123" Prompt the user to enter their username and password. Check if the entered credentials match the predefined values. Display "Login successful!" if credentials match, otherwise display "Invalid credentials." Constraints: 6. The username and password are case-sensitive. Evaluation Criteria: 7. The correctness and functionality of your WPF application. 8. Effective UI/UX design and responsiveness. 9. The efficient use of conditional statements and string handling within the application. 10. Code readability, organization, and commenting. Walkthrough: WPF Simple Login System Step 1: Setting Up the WPF Application (1 mark) Create a new WPF project in Visual Studio. Name it SimpleLoginSystem. Step 2: Designing the User Interface (2 marks)11. MainWindow.xaml: Add TextBox controls for entering the username and password. Add a button labeled "Login". Include a TextBlock or Label for displaying the result. Step 3: Implementing the Backend Logic (2 marks)12. MainWindow.xaml.cs: Define two string variables for the correct username and password. In the "Login" button event: Retrieve the username and password entered by the user. Compare them with the predefined values. Display the appropriate message based on the comparison result.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!