Click here to Skip to main content
13,086,264 members (58,172 online)
Click here to Skip to main content

Stats

55.2K views
854 downloads
21 bookmarked
Posted 5 Aug 2009

WPF Introduction: Databinding + Styles + IValueConverter

, 5 Aug 2009
A small introduction about Listview Databinding and Styles with introduction to IValueConverter interface
ListViewDataBindingSample
ListViewDataBindingSample
bin
Debug
ListViewDataBindingSample.exe
ListViewDataBindingSample.vshost.exe
Properties
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
Team Leader
India India
Working in a software development company specializing financial products as Senior Developer. Interested in WPF, WCF, C# and C.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170813.1 | Last Updated 6 Aug 2009
Article Copyright 2009 by Sathishkumar_P
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid