Providing Services to
World Wide

Mail Us
khizarshahal3@gmail.com

Contact Us
+92 3472506073

Blog Post Details

Home / Free Services / Blog Posts / Blog Post Details

CS411 Assignment # 02 Spring 2026

June 23, 2026

Copy Full C# Code .XAML & Paste into Visual Studio

Code Examples

C#
<Window x:Class="CS411_2_S26.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Assignment No 02 - CS411 Visual Programming"
        Height="600"
        Width="650"
        Background="LightBlue"
        WindowStartupLocation="CenterScreen">

    <StackPanel HorizontalAlignment="Center"
                VerticalAlignment="Top"
                Margin="0,5,0,0">

        <!-- Form Purpose / Heading -->
        <TextBlock Text="Semester: Spring 2026 , Course: CS411 - Visual Programming&#x0a;Assignment No: 02"
                   FontSize="18"
                   TextAlignment="Center"
                   HorizontalAlignment="Center"
                   Margin="0,0,0,20"/>

        <!-- Student ID -->
        <Label Content="Enter Student ID"
               Width="230"
               Height="30"
               Background="DarkGray"
               FontSize="14"
               FontWeight="Bold"
               Margin="0,0,0,8"/>

        <TextBox Width="230"
                 Height="28"
                 FontSize="14"
                 Margin="0,0,0,25"/>

        <!-- Student Name -->
        <Label Content="Enter Student Name"
               Width="230"
               Height="30"
               Background="DarkGray"
               FontSize="14"
               FontWeight="Bold"
               Margin="0,0,0,8"/>

        <TextBox Width="230"
                 Height="28"
                 FontSize="14"
                 Margin="0,0,0,25"/>

        <!-- Course Name -->
        <Label Content="Enter Course Name"
               Width="230"
               Height="30"
               Background="DarkGray"
               FontSize="14"
               FontWeight="Bold"
               Margin="0,0,0,8"/>

        <TextBox Width="230"
                 Height="28"
                 FontSize="14"
                 Margin="0,0,0,25"/>

        <!-- Assignment Title -->
        <Label Content="Enter Assignment Title"
               Width="230"
               Height="30"
               Background="DarkGray"
               FontSize="14"
               FontWeight="Bold"
               Margin="0,0,0,8"/>

        <TextBox Width="230"
                 Height="28"
                 FontSize="14"
                 Margin="0,0,0,25"/>

        <!-- Assignment Submission Date -->
        <Label Content="Enter Assignment Submission Date"
               Width="230"
               Height="30"
               Background="DarkGray"
               FontSize="14"
               FontWeight="Bold"
               Margin="0,0,0,8"/>

        <DatePicker Width="230"
                    Height="28"
                    FontSize="13"
                    Margin="0,0,0,20"/>

        <!-- Submit Button -->
        <Button Content="Submit Assignment"
                Width="140"
                Height="30"
                FontSize="12"
                HorizontalAlignment="Center"/>

    </StackPanel>
</Window>