Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
AnswerRe: Remoting - Retrieving a server pre-created object on the client Pin
Shy Agam15-Jul-07 8:30
Shy Agam15-Jul-07 8:30 
AnswerRe: Remoting - Retrieving a server pre-created object on the client Pin
mav.northwind15-Jul-07 9:42
mav.northwind15-Jul-07 9:42 
GeneralRe: Remoting - Retrieving a server pre-created object on the client Pin
Shy Agam15-Jul-07 9:51
Shy Agam15-Jul-07 9:51 
Questioncompile file html to file XML, using C#? Pin
turoi15-Jul-07 4:51
turoi15-Jul-07 4:51 
AnswerRe: compile file html to file XML, using C#? Pin
Manas Bhardwaj15-Jul-07 5:28
professionalManas Bhardwaj15-Jul-07 5:28 
AnswerRe: compile file html to file XML, using C#? Pin
Christian Graus15-Jul-07 5:35
protectorChristian Graus15-Jul-07 5:35 
AnswerRe: compile file html to file XML, using C#? Pin
Ed.Poore15-Jul-07 8:37
Ed.Poore15-Jul-07 8:37 
QuestionTreeView.SelectedItemChanged Event Question Pin
Andy Spier15-Jul-07 4:26
Andy Spier15-Jul-07 4:26 
To start, this is what I'm trying to do:

I have a custom style for my TreeViewItems in my WPF application. They do not have the small (+) expanders on the sides of my root items, and I don't want them anyway, so I have to double-click my TreeViewItems that have child items in order to expand them. I would rather my users have to single-click those TreeViewItems to expand them, showing the child items.
My problem is that the SelectedItemChanged event is not being fired when I select an already selected TreeViewItem, not allowing me to set the IsExpanded property in my event handler.

I have two options:

1. To find an easy way to expand my root TreeViewItems by single-clicking them instead of double-clicking them.
2. To allow the SelectedItemChanged event to fire even if the object I'm clicking on is already selected.

How do I either fire the SelectedItemChanged event if the selected item of the event is already selected?

For instance, I select one item in my TreeView, I select it again. However, the SelectedItemChanged event is not fired again because it's already selected, and technically not changed.

I tried using TreeView.MouseLeftButtonDown to test a click on my TreeView, but the event wasn't even firing because the SelectedItemChanged event was being fired when I would select items.

I've also tried setting the selected TreeViewItem's IsSelected property to false.

Any suggestions?
I appreciate your help in advance!

~ Doc
AnswerRe: TreeView.SelectedItemChanged Event Question Pin
Shy Agam15-Jul-07 8:04
Shy Agam15-Jul-07 8:04 
GeneralRe: TreeView.SelectedItemChanged Event Question Pin
Andy Spier15-Jul-07 9:14
Andy Spier15-Jul-07 9:14 
GeneralRe: TreeView.SelectedItemChanged Event Question Pin
Shy Agam15-Jul-07 9:43
Shy Agam15-Jul-07 9:43 
GeneralRe: TreeView.SelectedItemChanged Event Question Pin
Andy Spier17-Jul-07 11:35
Andy Spier17-Jul-07 11:35 
QuestionIncluding a "using System.X" object Pin
Manfr3d15-Jul-07 2:44
Manfr3d15-Jul-07 2:44 
AnswerRe: Including a "using System.X" object Pin
mav.northwind15-Jul-07 3:08
mav.northwind15-Jul-07 3:08 
QuestionEmail Pin
mcaos15-Jul-07 2:10
professionalmcaos15-Jul-07 2:10 
AnswerRe: Email Pin
martin_hughes15-Jul-07 3:12
martin_hughes15-Jul-07 3:12 
AnswerRe: Email Pin
mav.northwind15-Jul-07 3:15
mav.northwind15-Jul-07 3:15 
QuestionAppend new node to XML file Pin
saud_a_k15-Jul-07 1:34
saud_a_k15-Jul-07 1:34 
AnswerRe: Append new node to XML file Pin
mav.northwind15-Jul-07 2:18
mav.northwind15-Jul-07 2:18 
GeneralRe: Append new node to XML file Pin
saud_a_k15-Jul-07 19:25
saud_a_k15-Jul-07 19:25 
Questionhow to pass variable between classes in window application Pin
mhp13015-Jul-07 0:00
mhp13015-Jul-07 0:00 
AnswerRe: how to pass variable between classes in window application Pin
Guffa15-Jul-07 0:11
Guffa15-Jul-07 0:11 
GeneralRe: how to pass variable between classes in window application Pin
mhp13015-Jul-07 0:13
mhp13015-Jul-07 0:13 
AnswerRe: how to pass variable between classes in window application Pin
Muhammad Gouda15-Jul-07 0:17
Muhammad Gouda15-Jul-07 0:17 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 1:15
Colin Angus Mackay15-Jul-07 1:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.