add Button

2 posts, 0 answers
  1. Pravesh
    Pravesh avatar
    5 posts
    Member since:
    Jul 2010

    Posted 27 Sep 2010 Link to this post

    I want to add a button inside the treeview container style & how can I add click event.
    I am using a HierarchicalDataTemplate.

    this.OfficesDataSource = new List<OfficeName>();
    OfficeName o;
    EmployeeName e;
    this.OfficesDataSource.Add(o = new OfficeName("A"));
                o.EmployeeNames.Add(e = new EmployeeName("X"));
                o.EmployeeNames.Add(new EmployeeName("Y"));
                this.OfficesDataSource.Add(o = new OfficeName("B"));
                o.EmployeeNames.Add(new EmployeeName("Z"));
                this.DataContext = this.OfficesDataSource;


    Thanks
    Pravesh
  2. Pravesh
    Pravesh avatar
    5 posts
    Member since:
    Jul 2010

    Posted 28 Sep 2010 Link to this post

    I found a solution.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top