Click here to Skip to main content
15,913,854 members
Home / Discussions / WPF
   

WPF

 
QuestionListViewItem promblem Pin
mildred-frontfree21-May-09 0:57
mildred-frontfree21-May-09 0:57 
AnswerRe: ListViewItem promblem Pin
ABitSmart21-May-09 5:13
ABitSmart21-May-09 5:13 
GeneralRe: ListViewItem promblem Pin
mildred-frontfree21-May-09 18:14
mildred-frontfree21-May-09 18:14 
GeneralRe: ListViewItem promblem Pin
ABitSmart21-May-09 18:26
ABitSmart21-May-09 18:26 
AnswerRe: ListViewItem promblem Pin
Niladri_Biswas13-Jun-09 3:17
Niladri_Biswas13-Jun-09 3:17 
GeneralRe: ListViewItem promblem Pin
mildred-frontfree16-Jun-09 14:56
mildred-frontfree16-Jun-09 14:56 
GeneralRe: ListViewItem promblem Pin
Niladri_Biswas17-Jun-09 21:13
Niladri_Biswas17-Jun-09 21:13 
QuestionHelp getting values from combobox and comparing them to items in stackpanel Pin
Member 422055221-May-09 0:45
Member 422055221-May-09 0:45 
Hi,

I'm going to try my best to explain my issue here:

I have a business object called "Task" that consists of TaskName, TaskStart and TaskEnd.

In my UI I have a form that allows a user to enter the above values and a "NewTaskBtn" button to create the Task obj.

Tasks are created at runtime, so each time the "NewTaskBtn" is clicked a couple of things happen

1. a Task Obj is created in the "NewTaskBtn" event handler, using the info supplied above.

2. the Task Obj is also added to a List<Task>

3. At the same time an Expander item is created, with a header consisting of a concatenated string of TaskName + TaskStart + TaskEnd, and a combobox displaying the names of all the tasks in the List<Task>

4. the Expander item is then added to a StackPanel called "TaskSP"



So, at this stage I can create tasks, and have the tasks display in my stackpanel as expanders, containing task info and combobox in the header. right?

Now here is where I hit a brick wall. What I would like to achieve next is,

1. a user should be able to create a couple of tasks, and have the stackpanel fill with epanders containing the task info and comboboxes in the expander headers(this works OK)

2. then the user should be able to select a task in the stackpanel, and using the combobox in the expander header, select another task to add this task to (as a dependancy task, if you catch my drift. in other words adding task a to task b imply's that task a has to be completed before task b can be started)

I would like to use the combobox (in the header of my expander items) selection changed event to do the following:

get the name of the selected task from the combobox, and compare it with the header of the expander items in the stackpanel, and find the matching expander item in the TaskSP. So some sort of linq query that would include a where clause??? this is where I'm completely lost. If I can just get help achieving this, I will be most happy Big Grin | :-D
QuestionScrollViewer - How To Determine End of Scroll [SOLVED] Pin
#realJSOP21-May-09 0:32
professional#realJSOP21-May-09 0:32 
AnswerRe: ScrollViewer - How To Determine End of Scroll Pin
Pete O'Hanlon22-May-09 0:52
mvePete O'Hanlon22-May-09 0:52 
GeneralRe: ScrollViewer - How To Determine End of Scroll Pin
#realJSOP22-May-09 8:54
professional#realJSOP22-May-09 8:54 
GeneralRe: ScrollViewer - How To Determine End of Scroll Pin
#realJSOP1-Jun-09 11:09
professional#realJSOP1-Jun-09 11:09 
QuestionNo get device context Pin
krishnan.s20-May-09 15:26
krishnan.s20-May-09 15:26 
AnswerRe: No get device context Pin
Mark Salsbery20-May-09 15:49
Mark Salsbery20-May-09 15:49 
GeneralRe: No get device context Pin
krishnan.s21-May-09 0:22
krishnan.s21-May-09 0:22 
GeneralRe: No get device context Pin
Mark Salsbery21-May-09 5:45
Mark Salsbery21-May-09 5:45 
QuestionGettting metadata from TIFF file fails Pin
fjparisIII20-May-09 12:09
fjparisIII20-May-09 12:09 
AnswerRe: Gettting metadata from TIFF file fails Pin
Mark Salsbery20-May-09 15:45
Mark Salsbery20-May-09 15:45 
GeneralRe: Gettting metadata from TIFF file fails (RESOLVED!) Pin
fjparisIII20-May-09 16:46
fjparisIII20-May-09 16:46 
GeneralRe: Gettting metadata from TIFF file fails (RESOLVED!) Pin
Mark Salsbery20-May-09 17:15
Mark Salsbery20-May-09 17:15 
GeneralRe: Gettting metadata from TIFF file fails (RESOLVED!) Pin
fjparisIII21-May-09 12:33
fjparisIII21-May-09 12:33 
QuestionMessage Removed Pin
20-May-09 4:15
professionalN_tro_P20-May-09 4:15 
AnswerMessage Removed Pin
20-May-09 8:00
professionalN_tro_P20-May-09 8:00 
GeneralRe: Remove Selection of Listbox Inside of a Template Pin
#realJSOP20-May-09 8:11
professional#realJSOP20-May-09 8:11 
GeneralMessage Removed Pin
20-May-09 8:18
professionalN_tro_P20-May-09 8:18 

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.