We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

Assignment No. 2 Visual Programming (CS 411) opened on May 15, 2018 and due date of assignment submission will be May 22, 2018.

You are required to create a WPF C# application using Visual Studio.

Problem Statement:

You are required to create a WPF application which will take Student’s data as input and save it in xml file, title must be your VUID:


Create a grid Layout with two columns and 5 Rows and add all the elements in this according to the gif file provided.


Your application will have 4 textboxes for input fields along with labels:

  1. Name
  2. Student ID
  3. CGPA
  4. Semester

Two Buttons

  1. Save (This button will save data into XML file)
  2. Reset (This button will reset all the textboxes)

Clicking Save button will save the data of text boxes into xml file, the file name of .xml file will be your VU ID.xml, for example if your VUID is bc150401234 then file name must be bc150401234.xml.

Please Note that new record must be inserted after existing records if any record exists in the file. Below is the xml file template (this is just example you can change xml file format according to requirements)


<data id=”bc150201234” name=”Bilal Umar” cgpa=”3.49” semester=”7”/>

<data id=”bc160204512” name=”Muhammad Tahir” cgpa=”3.1” semester=”5”/>



Write your own VU id and Name in the application name and id fields while creating .gif file, otherwise your assignment will not be accepted.



Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.

Submission details

Following Files Must be submitted in a single zip or rar file.

·         .C# code file

·         .XAML File (Front End file)

·         .XML  Data file (named as your (VU ID).xml)

·         A .gif file which shows working of your Application(For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)

You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.

Views: 2174


Replies to This Discussion

Thanks Bhai 

what is the sol of  this?

Can anyone provide the functional code Plzzzzzzzz , code in both videos not working .

Complete solved

bhai share krdo pls meri exe file nhi create horhi



Is this complete solution??

my Visual studio is not working. can u plz send me the complete software link 

visual studio jahan sy ap ne download kia us ka link kindly send kar dain

mery pas jo visula studio hai us main all features nai hain


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service