Click here to Skip to main content
       

Silverlight / WPF

 
QuestionBinding DataGrid PinmemberSawyer19889-Feb-13 3:33 
AnswerRe: Binding DataGrid PinmemberAndy41128-Feb-13 2:25 
QuestionMain Widow Appears on top of the Navigated Window In WPF Navigation Service PinmemberVuyiswa Maseko6-Feb-13 0:43 
QuestionOpening new WPF form in seperate thread. PinmemberHema Bairavan2-Feb-13 8:31 
Dear All, Good day.
 
Need your help on threading.
 
I want to use a wpf window as progress window across my project.
 
On the main UI thread while doing the business logics i need to open a new wpf window in separate thread as progress window and once the Business logic is done i want to close the same.
 
I googled and found couple of examples to open a wpf window in separate thread and with new STA.. but am not able to find how to close the same window once done.
 
My progress window doesn't allow the user to close it.
 
global variable
 
progresswindow _pw = new progresswindow();
 
ShowProgress()
{
_pw.Show();
}
 
HideProgress()
{
_pw.Hide();
}
 
MainThreadBusinessLogic()
{
LogicStarts...
ShowProgress();

LogicEnds..
HideProgress();
}
 
This is wat i wanted to do. But as the main thread is very busy it wont show the progress window i know. I used the background worker and showed the progress bar.. But the thing is i have different business logic which will work based on the users clicks.. so i may need to create different workers for handling those.
 
If i do something like above mentioned window as progress window i can commonly use the same for all places.
 
Hence request your help here my friends.
thanks in advance.
AnswerRe: Opening new WPF form in seperate thread. PinmemberSledgeHammer012-Feb-13 10:28 
GeneralRe: Opening new WPF form in seperate thread. PinmemberHema Bairavan3-Feb-13 2:57 
GeneralRe: Opening new WPF form in seperate thread. PinmemberSledgeHammer013-Feb-13 7:41 
GeneralRe: Opening new WPF form in seperate thread. PinmemberJason Gleim1-Mar-13 8:00 
QuestionHow to user control view open in center of main parent window ? Pinmemberrahul ameta2-Feb-13 1:56 
Questionarrange elements inside wpf PinmemberRemix Mixdox1-Feb-13 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 22 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid