Click here to Skip to main content
15,904,823 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Proper way to manage c# wpf applications with multiple windows? Pin
_Maxxx_25-Aug-11 21:36
professional_Maxxx_25-Aug-11 21:36 
GeneralRe: Proper way to manage c# wpf applications with multiple windows? Pin
Mycroft Holmes26-Aug-11 13:08
professionalMycroft Holmes26-Aug-11 13:08 
QuestionCan I make a WPF DataGridRow unselectable? Pin
rj_odon24-Aug-11 21:46
rj_odon24-Aug-11 21:46 
AnswerRe: Can I make a WPF DataGridRow unselectable? Pin
Varsha Ramnani24-Aug-11 23:59
professionalVarsha Ramnani24-Aug-11 23:59 
QuestionVizualation of an object Pin
columbos1492724-Aug-11 9:39
columbos1492724-Aug-11 9:39 
AnswerRe: Vizualation of an object Pin
SledgeHammer0124-Aug-11 9:48
SledgeHammer0124-Aug-11 9:48 
QuestionCalendar MultipleRange (get selection) Pin
kurmanc24-Aug-11 5:43
kurmanc24-Aug-11 5:43 
AnswerRe: Calendar MultipleRange (get selection) Pin
SledgeHammer0124-Aug-11 6:27
SledgeHammer0124-Aug-11 6:27 
A lot of the WPF controls (as of .NET 4.0) are missing support for binding multiple selection. ListView / ListBox is another big one. You need to implement this yourself. I've done it on the ListView, but you could follow the same pattern:

1) derive CalenderEx class from Calender
2) add IList SelectedDatesEx dependency property
3) monitor changes to SelectedDates AND SelectedDatesEx collection
4) when changes occur in one collection, you simply mirror the changes in the other collection

Bam! you've got a bindable SelectedDatesEx property you can CLEANLY use with MVVM.

There are a few gotchas you need to watch out for when syncing up the lists, but its pretty trivial. I.e. if list1 notifies you of a change, you add the item to list2, but now list2 has raised a change event, so you have to be careful you don't try to add this to list1 again. Basically, block re-entrancy.
GeneralRe: Calendar MultipleRange (get selection) Pin
kurmanc24-Aug-11 6:41
kurmanc24-Aug-11 6:41 
QuestionWP7 using silverlight Pin
arkiboys23-Aug-11 23:18
arkiboys23-Aug-11 23:18 
AnswerRe: WP7 using silverlight Pin
Dan Mos24-Aug-11 0:08
Dan Mos24-Aug-11 0:08 
GeneralRe: WP7 using silverlight Pin
arkiboys24-Aug-11 0:30
arkiboys24-Aug-11 0:30 
GeneralRe: WP7 using silverlight Pin
Dan Mos24-Aug-11 0:48
Dan Mos24-Aug-11 0:48 
GeneralRe: WP7 using silverlight Pin
arkiboys24-Aug-11 1:40
arkiboys24-Aug-11 1:40 
Question"Embed" an external video clip Pin
McCombi23-Aug-11 22:18
McCombi23-Aug-11 22:18 
AnswerRe: "Embed" an external video clip Pin
Navin Pandit23-Aug-11 22:34
Navin Pandit23-Aug-11 22:34 
GeneralRe: "Embed" an external video clip Pin
McCombi23-Aug-11 22:49
McCombi23-Aug-11 22:49 
GeneralRe: "Embed" an external video clip Pin
Navin Pandit23-Aug-11 23:50
Navin Pandit23-Aug-11 23:50 
AnswerRe: "Embed" an external video clip Pin
McCombi24-Aug-11 3:07
McCombi24-Aug-11 3:07 
QuestionWPF help- how to access a textbox value from a different window Pin
steersteer22-Aug-11 11:17
steersteer22-Aug-11 11:17 
AnswerRe: WPF help- how to access a textbox value from a different window Pin
Mycroft Holmes22-Aug-11 13:09
professionalMycroft Holmes22-Aug-11 13:09 
GeneralRe: WPF help- how to access a textbox value from a different window Pin
steersteer22-Aug-11 13:47
steersteer22-Aug-11 13:47 
GeneralRe: WPF help- how to access a textbox value from a different window Pin
Mycroft Holmes22-Aug-11 14:04
professionalMycroft Holmes22-Aug-11 14:04 
QuestionLosing expanded nodes in TreeView after ItemsSource has updated Pin
Mc_Topaz21-Aug-11 21:58
Mc_Topaz21-Aug-11 21:58 
AnswerRe: Losing expanded nodes in TreeView after ItemsSource has updated Pin
Mycroft Holmes21-Aug-11 22:42
professionalMycroft Holmes21-Aug-11 22:42 

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.