Click here to Skip to main content
15,893,161 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: ItemsPresenter ! Pin
ABitSmart29-Mar-09 5:13
ABitSmart29-Mar-09 5:13 
QuestionMinimizing a WPF window ? Pin
Mohammad Dayyan28-Mar-09 4:55
Mohammad Dayyan28-Mar-09 4:55 
AnswerRe: Minimizing a WPF window ? Pin
ABitSmart28-Mar-09 5:20
ABitSmart28-Mar-09 5:20 
GeneralRe: Minimizing a WPF window ? Pin
Mohammad Dayyan28-Mar-09 6:02
Mohammad Dayyan28-Mar-09 6:02 
GeneralRe: Minimizing a WPF window ? Pin
ABitSmart28-Mar-09 6:03
ABitSmart28-Mar-09 6:03 
QuestionWPF application with listview hangs and threads keep increasing Pin
Pankaj Chamria27-Mar-09 21:02
Pankaj Chamria27-Mar-09 21:02 
AnswerRe: WPF application with listview hangs and threads keep increasing Pin
ABitSmart28-Mar-09 1:13
ABitSmart28-Mar-09 1:13 
GeneralRe: WPF application with listview hangs and threads keep increasing Pin
Pankaj Chamria3-Apr-09 6:03
Pankaj Chamria3-Apr-09 6:03 
Thanks for your reply.

I am using two collections. Collection A is a list of objects which implement INotifyPropertyChanged. It gets updated continuosly using a worker thread. Collection B is my observable collection hosted in the UI thread, which observes on Collection A elements. I used Normal priority. Using Background too causes this issue, although it occurs less frequently.

The issue seems to be with the wpf framework, although i am not sure. I found the solution to my problem on the following thread, which makes for a good reading.
http://social.expression.microsoft.com/Forums/en-US/wpf/thread/e55530dc-a358-4c6b-81b6-25a11c173a22/[^]

Now i let the background thread do the updations as fast as it wants to without raising the property changed events at that time, but i raise all the property changed events for all objects in collection from the UI thread on every 100 frames using the CompositionTarget.Rendering event. Now the hang problem is thankfully put to rest!

PS: You mentioned that even without raising the property changed events, my listview should get updated as I am using the observable collection. But I tested it out. It does not work without raising the PropertyChanged event, for my design of using 2 collections.

Pankaj Chamria,
Software Programmer.

GeneralRe: WPF application with listview hangs and threads keep increasing Pin
ABitSmart3-Apr-09 6:31
ABitSmart3-Apr-09 6:31 
AnswerRe: WPF application with listview hangs and threads keep increasing Pin
BlitzPackage28-Mar-09 2:31
BlitzPackage28-Mar-09 2:31 
QuestionBest components or framework for real-time desktop application? Pin
SirajP27-Mar-09 12:11
SirajP27-Mar-09 12:11 
AnswerRe: Best components or framework for real-time desktop application? Pin
BlitzPackage27-Mar-09 16:40
BlitzPackage27-Mar-09 16:40 
QuestionWPF ResourceDictionary problem Pin
#realJSOP27-Mar-09 4:02
mve#realJSOP27-Mar-09 4:02 
AnswerRe: WPF ResourceDictionary problem Pin
Pete O'Hanlon27-Mar-09 4:13
mvePete O'Hanlon27-Mar-09 4:13 
GeneralRe: WPF ResourceDictionary problem Pin
#realJSOP27-Mar-09 4:22
mve#realJSOP27-Mar-09 4:22 
GeneralRe: WPF ResourceDictionary problem Pin
Pete O'Hanlon27-Mar-09 4:38
mvePete O'Hanlon27-Mar-09 4:38 
GeneralRe: WPF ResourceDictionary problem Pin
#realJSOP27-Mar-09 4:50
mve#realJSOP27-Mar-09 4:50 
GeneralRe: WPF ResourceDictionary problem Pin
Pete O'Hanlon27-Mar-09 4:55
mvePete O'Hanlon27-Mar-09 4:55 
AnswerRe: WPF ResourceDictionary problem [OT] Pin
Wes Aday27-Mar-09 9:17
professionalWes Aday27-Mar-09 9:17 
GeneralRe: WPF ResourceDictionary problem [OT] Pin
BlitzPackage27-Mar-09 14:53
BlitzPackage27-Mar-09 14:53 
GeneralRe: WPF ResourceDictionary problem [OT] Pin
#realJSOP28-Mar-09 1:03
mve#realJSOP28-Mar-09 1:03 
GeneralRe: WPF ResourceDictionary problem [OT] Pin
BlitzPackage28-Mar-09 2:35
BlitzPackage28-Mar-09 2:35 
GeneralRe: WPF ResourceDictionary problem [OT] Pin
#realJSOP28-Mar-09 1:00
mve#realJSOP28-Mar-09 1:00 
QuestionCustom Input Method Editor (IME) candidate window with WPF? Pin
Matt Sherman26-Mar-09 9:16
Matt Sherman26-Mar-09 9:16 
QuestionWcf Service in a Windows Service Pin
Jammer26-Mar-09 7:33
Jammer26-Mar-09 7:33 

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.