Click here to Skip to main content
15,885,985 members
Home / Discussions / WPF
   

WPF

 
QuestionExpose Enum From Template Pin
Kevin Marois9-Feb-13 12:10
professionalKevin Marois9-Feb-13 12:10 
AnswerRe: Expose Enum From Template Pin
SledgeHammer019-Feb-13 13:43
SledgeHammer019-Feb-13 13:43 
QuestionData Flow in a WPF App Pin
AeroClassics9-Feb-13 11:19
professionalAeroClassics9-Feb-13 11:19 
AnswerRe: Data Flow in a WPF App Pin
Super Lloyd14-Feb-13 18:08
Super Lloyd14-Feb-13 18:08 
QuestionBinding DataGrid Pin
Sawyer19889-Feb-13 3:33
Sawyer19889-Feb-13 3:33 
AnswerRe: Binding DataGrid Pin
Andy41128-Feb-13 2:25
Andy41128-Feb-13 2:25 
QuestionMain Widow Appears on top of the Navigated Window In WPF Navigation Service Pin
Vimalsoft(Pty) Ltd6-Feb-13 0:43
professionalVimalsoft(Pty) Ltd6-Feb-13 0:43 
QuestionOpening new WPF form in seperate thread. Pin
Hema Bairavan2-Feb-13 8:31
Hema 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. Pin
SledgeHammer012-Feb-13 10:28
SledgeHammer012-Feb-13 10:28 
GeneralRe: Opening new WPF form in seperate thread. Pin
Hema Bairavan3-Feb-13 2:57
Hema Bairavan3-Feb-13 2:57 
GeneralRe: Opening new WPF form in seperate thread. Pin
SledgeHammer013-Feb-13 7:41
SledgeHammer013-Feb-13 7:41 
GeneralRe: Opening new WPF form in seperate thread. Pin
Jason Gleim1-Mar-13 8:00
professionalJason Gleim1-Mar-13 8:00 
QuestionHow to user control view open in center of main parent window ? Pin
rahul ameta2-Feb-13 1:56
rahul ameta2-Feb-13 1:56 
Questionarrange elements inside wpf Pin
Remix Mixdox1-Feb-13 22:27
Remix Mixdox1-Feb-13 22:27 
AnswerRe: arrange elements inside wpf Pin
Abhinav S3-Feb-13 7:02
Abhinav S3-Feb-13 7:02 
QuestionCustom Controls Pin
Sawyer19881-Feb-13 7:05
Sawyer19881-Feb-13 7:05 
QuestionApplication Launcher Pin
Mycroft Holmes31-Jan-13 13:49
professionalMycroft Holmes31-Jan-13 13:49 
AnswerRe: Application Launcher Pin
Abhinav S1-Feb-13 8:22
Abhinav S1-Feb-13 8:22 
QuestionWPF controls refresh Pin
caradri31-Jan-13 1:50
caradri31-Jan-13 1:50 
AnswerRe: WPF controls refresh Pin
Pete O'Hanlon31-Jan-13 2:44
mvePete O'Hanlon31-Jan-13 2:44 
GeneralRe: WPF controls refresh Pin
caradri31-Jan-13 10:20
caradri31-Jan-13 10:20 
GeneralRe: WPF controls refresh Pin
Richard Deeming31-Jan-13 11:25
mveRichard Deeming31-Jan-13 11:25 
GeneralRe: WPF controls refresh Pin
caradri2-Feb-13 17:59
caradri2-Feb-13 17:59 
GeneralRe: WPF controls refresh Pin
caradri3-Feb-13 20:16
caradri3-Feb-13 20:16 
QuestionRoutedEvent vs AttachedEvent Pin
devvvy29-Jan-13 22:30
devvvy29-Jan-13 22:30 

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.