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

WPF

 
GeneralRe: taking the control Pin
Pete O'Hanlon31-May-09 23:04
mvePete O'Hanlon31-May-09 23:04 
GeneralRe: taking the control Pin
Hema Bairavan31-May-09 23:14
Hema Bairavan31-May-09 23:14 
GeneralRe: taking the control Pin
Hema Bairavan31-May-09 23:27
Hema Bairavan31-May-09 23:27 
QuestionPlz help in couple of think in ListView Pin
wasimsharp31-May-09 19:13
wasimsharp31-May-09 19:13 
AnswerRe: Plz help in couple of think in ListView Pin
ABitSmart31-May-09 20:38
ABitSmart31-May-09 20:38 
Questionhow to animate the button in sequencial mode ? Pin
Feras Mazen Taleb31-May-09 1:53
Feras Mazen Taleb31-May-09 1:53 
AnswerRe: how to animate the button in sequencial mode ? Pin
ABitSmart31-May-09 2:37
ABitSmart31-May-09 2:37 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb31-May-09 7:29
Feras Mazen Taleb31-May-09 7:29 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb1-Jun-09 23:59
Feras Mazen Taleb1-Jun-09 23:59 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb2-Jun-09 2:03
Feras Mazen Taleb2-Jun-09 2:03 
AnswerRe: how to animate the button in sequencial mode ? Pin
Pete O'Hanlon2-Jun-09 2:11
mvePete O'Hanlon2-Jun-09 2:11 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb2-Jun-09 2:28
Feras Mazen Taleb2-Jun-09 2:28 
AnswerRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb2-Jun-09 21:04
Feras Mazen Taleb2-Jun-09 21:04 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb7-Jun-09 3:54
Feras Mazen Taleb7-Jun-09 3:54 
QuestionImage on Button Pin
Member 232448330-May-09 9:11
Member 232448330-May-09 9:11 
AnswerRe: Image on Button Pin
ABitSmart30-May-09 16:51
ABitSmart30-May-09 16:51 
AnswerRe: Image on Button Pin
Mark Salsbery31-May-09 8:14
Mark Salsbery31-May-09 8:14 
QuestionProblem executing BitmapDecoder.Save() in worker thread [modified] Pin
fjparisIII30-May-09 8:50
fjparisIII30-May-09 8:50 
AnswerRe: Problem executing BitmapDecoder.Save() in worker thread (solved through egregious kludge) Pin
fjparisIII30-May-09 12:38
fjparisIII30-May-09 12:38 
AnswerRe: Problem executing BitmapDecoder.Save() in worker thread [modified] Pin
Mark Salsbery31-May-09 8:30
Mark Salsbery31-May-09 8:30 
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
fjparisIII31-May-09 11:42
fjparisIII31-May-09 11:42 
Hi, Mark. Thanks for your reply.

I'm using the the BackgroundWorker class to run my worker thread. In looking through MSDN, I don't see any way of getting the thread object of the background worker before it starts, and I'd need to do that before I could call Thread.SetApartmentState(ApartmentState.STA). I would actually be shocked with disbelief if the BackgroundWorker thread doesn't automatically run with ApartmentState.STA. The only other option is ApartmentState.MTA, and I don't believe that's even supported under WPF.

Also, you think my current kludge is bad! It turns out it doesn't work for my image scaling class. I still get "The image data generated an overflow during processing." So I'm thinking of capturing all of the common metadata items from the original image and adding them one at a time into the resized images after supplying the necessary padding. I'm that desperate. I don't even know if this will work. All I know is that simply copying the entire BitmapMetadata object from the original image with BitmapFrame.Create() does not.
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
Mark Salsbery31-May-09 12:26
Mark Salsbery31-May-09 12:26 
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
fjparisIII31-May-09 13:50
fjparisIII31-May-09 13:50 
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
fjparisIII31-May-09 18:46
fjparisIII31-May-09 18:46 
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
Mark Salsbery31-May-09 20:18
Mark Salsbery31-May-09 20: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.