|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace ListViewDataBindingSample
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
List<EmployeeData> employeeDataList = new List<EmployeeData>();
EmployeeData e1 = new EmployeeData(3809, "Sathish Kumar", "Application Developer", false, 28);
EmployeeData e2 = new EmployeeData(3810, "Ambalavanar", "Senior Application Developer", false, 28);
EmployeeData e3 = new EmployeeData(2783, "Raghuraman", "Senior Application Developer", false, 26);
EmployeeData e4 = new EmployeeData(2157, "Balasubramaninan", "Project Leader", false, 34);
EmployeeData e5 = new EmployeeData(3151, "Raja Natarajan", "Development Manager", true, 37);
employeeDataList.Add(e1);
employeeDataList.Add(e2);
employeeDataList.Add(e3);
employeeDataList.Add(e4);
employeeDataList.Add(e5);
lsvElements.ItemsSource = employeeDataList;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Working in a software development company specializing financial products as Senior Developer. Interested in WPF, WCF, C# and C.