Click here to Skip to main content
11,712,126 members (75,891 online)

Silverlight / WPF

 
AnswerRe: Enterprise solution Pin
Richard MacCutchan13-Feb-13 22:32
mvpRichard MacCutchan13-Feb-13 22:32 
AnswerRe: Enterprise solution Pin
Super Lloyd14-Feb-13 18:04
memberSuper Lloyd14-Feb-13 18:04 
QuestionRe: Enterprise solution Pin
vaishali thaker10-Apr-13 19:24
membervaishali thaker10-Apr-13 19:24 
QuestionChange 3 variables in another WPF window Pin
GiuseppeKoll9-Feb-13 22:38
memberGiuseppeKoll9-Feb-13 22:38 
AnswerRe: Change 3 variables in another WPF window Pin
Mycroft Holmes10-Feb-13 9:02
memberMycroft Holmes10-Feb-13 9:02 
GeneralRe: Change 3 variables in another WPF window Pin
GiuseppeKoll10-Feb-13 9:40
memberGiuseppeKoll10-Feb-13 9:40 
QuestionExpose Enum From Template Pin
Kevin Marois9-Feb-13 12:10
memberKevin Marois9-Feb-13 12:10 
AnswerRe: Expose Enum From Template Pin
SledgeHammer019-Feb-13 13:43
memberSledgeHammer019-Feb-13 13:43 
QuestionData Flow in a WPF App Pin
AeroClassics9-Feb-13 11:19
memberAeroClassics9-Feb-13 11:19 
AnswerRe: Data Flow in a WPF App Pin
Super Lloyd14-Feb-13 18:08
memberSuper Lloyd14-Feb-13 18:08 
QuestionBinding DataGrid Pin
Sawyer19889-Feb-13 3:33
memberSawyer19889-Feb-13 3:33 
AnswerRe: Binding DataGrid Pin
Andy41128-Feb-13 2:25
memberAndy41128-Feb-13 2:25 
QuestionMain Widow Appears on top of the Navigated Window In WPF Navigation Service Pin
Vuyiswa Maseko6-Feb-13 0:43
memberVuyiswa Maseko6-Feb-13 0:43 
QuestionOpening new WPF form in seperate thread. Pin
Hema Bairavan2-Feb-13 8:31
memberHema 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
memberSledgeHammer012-Feb-13 10:28 
GeneralRe: Opening new WPF form in seperate thread. Pin
Hema Bairavan3-Feb-13 2:57
memberHema Bairavan3-Feb-13 2:57 
GeneralRe: Opening new WPF form in seperate thread. Pin
SledgeHammer013-Feb-13 7:41
memberSledgeHammer013-Feb-13 7:41 
GeneralRe: Opening new WPF form in seperate thread. Pin
Jason Gleim1-Mar-13 8:00
memberJason Gleim1-Mar-13 8:00 
QuestionHow to user control view open in center of main parent window ? Pin
rahul ameta2-Feb-13 1:56
memberrahul ameta2-Feb-13 1:56 
Questionarrange elements inside wpf Pin
Remix Mixdox1-Feb-13 22:27
memberRemix Mixdox1-Feb-13 22:27 
AnswerRe: arrange elements inside wpf Pin
Abhinav S3-Feb-13 7:02
mvpAbhinav S3-Feb-13 7:02 
QuestionCustom Controls Pin
Sawyer19881-Feb-13 7:05
memberSawyer19881-Feb-13 7:05 
QuestionApplication Launcher Pin
Mycroft Holmes31-Jan-13 13:49
memberMycroft Holmes31-Jan-13 13:49 
AnswerRe: Application Launcher Pin
Abhinav S1-Feb-13 8:22
mvpAbhinav S1-Feb-13 8:22 
QuestionWPF controls refresh Pin
caradri31-Jan-13 1:50
membercaradri31-Jan-13 1:50 
AnswerRe: WPF controls refresh Pin
Pete O'Hanlon31-Jan-13 2:44
protectorPete O'Hanlon31-Jan-13 2:44 
GeneralRe: WPF controls refresh Pin
caradri31-Jan-13 10:20
membercaradri31-Jan-13 10:20 
GeneralRe: WPF controls refresh Pin
Richard Deeming31-Jan-13 11:25
memberRichard Deeming31-Jan-13 11:25 
GeneralRe: WPF controls refresh Pin
caradri2-Feb-13 17:59
membercaradri2-Feb-13 17:59 
GeneralRe: WPF controls refresh Pin
caradri3-Feb-13 20:16
membercaradri3-Feb-13 20:16 
QuestionRoutedEvent vs AttachedEvent Pin
devvvy29-Jan-13 22:30
memberdevvvy29-Jan-13 22:30 
AnswerRe: RoutedEvent vs AttachedEvent Pin
Pete O'Hanlon29-Jan-13 22:51
protectorPete O'Hanlon29-Jan-13 22:51 
GeneralRe: RoutedEvent vs AttachedEvent Pin
devvvy29-Jan-13 23:02
memberdevvvy29-Jan-13 23:02 
GeneralRe: RoutedEvent vs AttachedEvent Pin
Pete O'Hanlon30-Jan-13 0:45
protectorPete O'Hanlon30-Jan-13 0:45 
GeneralRe: RoutedEvent vs AttachedEvent Pin
devvvy30-Jan-13 2:40
memberdevvvy30-Jan-13 2:40 
GeneralRe: RoutedEvent vs AttachedEvent Pin
Pete O'Hanlon30-Jan-13 2:44
protectorPete O'Hanlon30-Jan-13 2:44 
GeneralRe: RoutedEvent vs AttachedEvent Pin
devvvy30-Jan-13 3:08
memberdevvvy30-Jan-13 3:08 
QuestionWPF Tab Item Close Button Pin
Kevin Marois29-Jan-13 18:03
memberKevin Marois29-Jan-13 18:03 
AnswerRe: WPF Tab Item Close Button Pin
SledgeHammer0129-Jan-13 19:02
memberSledgeHammer0129-Jan-13 19:02 
GeneralRe: WPF Tab Item Close Button Pin
Kevin Marois2-Feb-13 15:33
memberKevin Marois2-Feb-13 15:33 
GeneralRe: WPF Tab Item Close Button Pin
SledgeHammer012-Feb-13 18:25
memberSledgeHammer012-Feb-13 18:25 
QuestionCustom Control Template for beginners Pin
jeffdavis870329-Jan-13 9:12
memberjeffdavis870329-Jan-13 9:12 
AnswerRe: Custom Control Template for beginners Pin
SledgeHammer0129-Jan-13 11:32
memberSledgeHammer0129-Jan-13 11:32 
GeneralRe: Custom Control Template for beginners Pin
jeffdavis870329-Jan-13 12:10
memberjeffdavis870329-Jan-13 12:10 
GeneralRe: Custom Control Template for beginners Pin
SledgeHammer0129-Jan-13 12:46
memberSledgeHammer0129-Jan-13 12:46 
GeneralTreeview Selection Pin
vijilvs11628-Jan-13 23:03
membervijilvs11628-Jan-13 23:03 
QuestionProblem With TreeViewItem Tooltip Pin
Kevin Marois26-Jan-13 15:39
memberKevin Marois26-Jan-13 15:39 
GeneralRe: Problem With TreeViewItem Tooltip Pin
Thomas Duwe29-Jan-13 1:46
memberThomas Duwe29-Jan-13 1:46 
QuestionHow to get a value from treeview. Pin
boryborawski26-Jan-13 12:06
memberboryborawski26-Jan-13 12:06 
QuestionConstant header and footer Pin
columbos1492725-Jan-13 23:11
membercolumbos1492725-Jan-13 23:11 

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
Web01 | 2.8.150819.1 | Last Updated 27 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid