I want to use the TreeView.AfterCollapse Event in WPF .
Is there a Way to use it??
and why are not all Events supported in WPF?
Thank you
I want to use the TreeView.AfterCollapse Event in WPF . Is there a Way
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
TreeViewItemhas aCollapsedevent which is equivalent to theAfterCollapsedevent in Windows Forms. This event is initially raised by theTreeViewItem, not theTreeView, but since it’s a bubbling event, it is also raised on theTreeViewafterwards, so you can handle it at this level if you need to. You can use theOriginalSourceproperty to get theTreeViewItemthat raised the event:XAML
Code-behind