This is a migrated thread and some comments may be shown as answers.

add Button

1 Answer 59 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Pravesh
Top achievements
Rank 1
Pravesh asked on 27 Sep 2010, 05:49 PM
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

1 Answer, 1 is accepted

Sort by
0
Pravesh
Top achievements
Rank 1
answered on 28 Sep 2010, 05:54 AM
I found a solution.
Tags
TreeView
Asked by
Pravesh
Top achievements
Rank 1
Answers by
Pravesh
Top achievements
Rank 1
Share this question
or