Click here to Skip to main content
15,899,626 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Make silverlight app on page a "singleton" Pin
AspDotNetDev9-Mar-11 12:33
protectorAspDotNetDev9-Mar-11 12:33 
GeneralRe: Make silverlight app on page a "singleton" Pin
Mycroft Holmes9-Mar-11 13:01
professionalMycroft Holmes9-Mar-11 13:01 
AnswerRe: Make silverlight app on page a "singleton" Pin
Pete O'Hanlon9-Mar-11 11:54
mvePete O'Hanlon9-Mar-11 11:54 
GeneralRe: Make silverlight app on page a "singleton" Pin
AspDotNetDev9-Mar-11 12:36
protectorAspDotNetDev9-Mar-11 12:36 
AnswerRe: Make silverlight app on page a "singleton" Pin
AspDotNetDev9-Mar-11 12:32
protectorAspDotNetDev9-Mar-11 12:32 
GeneralRe: Make silverlight app on page a "singleton" Pin
dbrenth10-Mar-11 3:59
dbrenth10-Mar-11 3:59 
QuestionCalling windows service - Dequeue Pin
arkiboys9-Mar-11 5:05
arkiboys9-Mar-11 5:05 
AnswerRe: Calling windows service - Dequeue Pin
Pete O'Hanlon9-Mar-11 7:13
mvePete O'Hanlon9-Mar-11 7:13 
Well, the obvious way to do this I suppose would be to create a limited queue, and put the onus on the queuing mechanism to add in a number of items until it's full, at which point it starts dequeuing - if your SL app picks up stuff, great, but if not - the queue will have an effective upper limit. To do this, you should subclass the Queue class and manage it there. This is a fairly trivial piece of code to write, so I'll leave it for you to do but I will give you a couple of pointers:

1. When you dequeue your object, you'll have to lock it because you could have two threads accessing it and you want to guard against race conditions.
2. If you change the limit of your queue in code, check to see that the number of items on the queue don't exceed the new limit - if they do, then dequeue them.

I'm not a stalker, I just know things. Oh by the way, you're out of milk.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


Questionhow do I match my string to one of the comboBox items Pin
Ravi Munde9-Mar-11 0:10
Ravi Munde9-Mar-11 0:10 
AnswerRe: how do I match my string to one of the comboBox items Pin
Pete O'Hanlon9-Mar-11 1:37
mvePete O'Hanlon9-Mar-11 1:37 
AnswerRe: how do I match my string to one of the comboBox items Pin
Abhinav S9-Mar-11 18:26
Abhinav S9-Mar-11 18:26 
QuestionCan you bind by property name? Pin
SledgeHammer018-Mar-11 19:55
SledgeHammer018-Mar-11 19:55 
AnswerRe: Can you bind by property name? Pin
Pete O'Hanlon8-Mar-11 21:32
mvePete O'Hanlon8-Mar-11 21:32 
GeneralRe: Can you bind by property name? Pin
SledgeHammer019-Mar-11 6:26
SledgeHammer019-Mar-11 6:26 
GeneralRe: Can you bind by property name? Pin
Pete O'Hanlon9-Mar-11 7:07
mvePete O'Hanlon9-Mar-11 7:07 
GeneralRe: Can you bind by property name? Pin
SledgeHammer019-Mar-11 7:44
SledgeHammer019-Mar-11 7:44 
GeneralRe: Can you bind by property name? Pin
Pete O'Hanlon9-Mar-11 9:11
mvePete O'Hanlon9-Mar-11 9:11 
GeneralRe: Can you bind by property name? Pin
SledgeHammer019-Mar-11 10:08
SledgeHammer019-Mar-11 10:08 
GeneralRe: Can you bind by property name? Pin
Pete O'Hanlon9-Mar-11 21:54
mvePete O'Hanlon9-Mar-11 21:54 
QuestionHow to update the datagrid in wpf based on text changed property of text box control in MVVM mdel? Pin
SRKSHOME8-Mar-11 6:47
SRKSHOME8-Mar-11 6:47 
AnswerRe: How to update the datagrid in wpf based on text changed property of text box control in MVVM mdel? Pin
Jammer8-Mar-11 7:26
Jammer8-Mar-11 7:26 
AnswerRe: How to update the datagrid in wpf based on text changed property of text box control in MVVM mdel? Pin
Pete O'Hanlon8-Mar-11 9:07
mvePete O'Hanlon8-Mar-11 9:07 
QuestionResize controls in canvas Pin
manoj221847-Mar-11 1:20
manoj221847-Mar-11 1:20 
AnswerRe: Resize controls in canvas Pin
Abhinav S7-Mar-11 2:07
Abhinav S7-Mar-11 2:07 
AnswerRe: Resize controls in canvas Pin
RobCroll7-Mar-11 15:37
RobCroll7-Mar-11 15:37 

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.