Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

WPF Introduction: Databinding + Styles + IValueConverter

, 5 Aug 2009 CPOL
A small introduction about Listview Databinding and Styles with introduction to IValueConverter interface
ListViewDataBindingSample.zip
ListViewDataBindingSample
ListViewDataBindingSample
bin
Debug
ListViewDataBindingSample.exe
ListViewDataBindingSample.vshost.exe
Properties
Settings.settings
ListViewDataBindingSample.suo
ListViewDataBindingSample.vshost.exe.manifest
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ListViewDataBindingSample
{
    public class EmployeeData
    {
        private int _empID;
        public int EmpID
        {
            get { return _empID; }
            set { _empID = value; }
        }

        private string _empName;
        public string EmpName
        {
            get { return _empName; }
            set { _empName = value; }
        }

        private string _designation;
        public string Designation
        {
            get { return _designation; }
            set { _designation = value; }
        }

        private bool _isManager;
        public bool IsManager
        {
            get { return _isManager; }
            set { _isManager = value; }
        }

        private int _age;
        public int Age
        {
            get { return _age; }
            set { _age = value; }
        }

        public EmployeeData(int empID, string empName, string designation, bool isManager, int age)
        {
            EmpID = empID;
            EmpName = empName;
            Designation = designation;
            IsManager = isManager;
            Age = age;
        }

    }
}

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sathishkumar_P
Software Developer (Senior)
India India
Working in a software development company specializing financial products as Senior Developer. Interested in WPF, WCF, C# and C.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150327.1 | Last Updated 6 Aug 2009
Article Copyright 2009 by Sathishkumar_P
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid