Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6361683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:48:34+00:00 2026-05-24T23:48:34+00:00

I want to use the TreeView.AfterCollapse Event in WPF . Is there a Way

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:48:34+00:00Added an answer on May 24, 2026 at 11:48 pm

    TreeViewItem has a Collapsed event which is equivalent to the AfterCollapsed event in Windows Forms. This event is initially raised by the TreeViewItem, not the TreeView, but since it’s a bubbling event, it is also raised on the TreeView afterwards, so you can handle it at this level if you need to. You can use the OriginalSource property to get the TreeViewItem that raised the event:

    XAML

    <TreeView TreeViewItem.Collapsed="TreeViewItem_Collapsed" ...>
    

    Code-behind

    private void TreeViewItem_Collapsed(object sender, RoutedEventArgs e)
    {
        TreeViewItem tvi = (TreeViewItem)e.OriginalSource;
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use a treeview in WPF and I don't want to lose the state
I want use a single php file to handle all of my voting requests.
I want to display data with level of detail, so i use a TreeView,
I have a treeview control. I use keyboard to navigate through nodes. I want
I want in the window of a wpf to set a treeview and make
i use jquery treeview http://docs.jquery.com/Plugins/Treeview/treeview i want to catch click on text node and
Is there any way to raise the SelectedNodeChanged event on selecting the node twice.
I want to run some code on all my treeView nodes depending on a
I want to use a hierarchical TreeView which I will populate programmatically. My XAML
I'm working with application, which use TreeView. I want some nodes have checkBoxes, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.