Click here to Skip to main content
15,886,509 members
Home / Discussions / WPF
   

WPF

 
Question[Message Deleted] Pin
ahsansharjeel11-Oct-09 2:47
ahsansharjeel11-Oct-09 2:47 
AnswerRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
Christian Graus11-Oct-09 10:52
protectorChristian Graus11-Oct-09 10:52 
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
ahsansharjeel11-Oct-09 18:05
ahsansharjeel11-Oct-09 18:05 
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
Pete O'Hanlon11-Oct-09 22:25
mvePete O'Hanlon11-Oct-09 22:25 
QuestionWhy doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? Pin
fjparisIII10-Oct-09 10:20
fjparisIII10-Oct-09 10:20 
AnswerRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? Pin
Pete O'Hanlon11-Oct-09 11:58
mvePete O'Hanlon11-Oct-09 11:58 
GeneralRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? [modified] Pin
fjparisIII11-Oct-09 12:49
fjparisIII11-Oct-09 12:49 
QuestionHelp with ProgressBar Pin
Etienne_12310-Oct-09 3:19
Etienne_12310-Oct-09 3:19 
Hi
I'm having a bit of an issue with my progress bar in WPF. Let me first explain why I want a progress bar. I have a list of products that I save back to a database when clicking a Save button. Sometimes this list can contain quite a lot of items, and this takes a while to save. I use a for loop to loop through and save each item in this list. So what I want to do is increment the progress bar after each loop iteration. Is this possible? Below is what I tried doing but it only updates the progress bar after the loop has finished, even though I'm running it on a different thread:

for (int i = 0; i < someList.Count; i++)<br />
{<br />
//CODE SAVE LIST ITEM<br />
//CODE SAVE LIST ITEM<br />
<br />
new Thread(delegate()<br />
{<br />
     UpdateProgress(100 / productPartsList.Count);<br />
}).Start(); <br />
}//end of for loop<br />
<br />
//UPDATE PROGRESS BAR METHOD<br />
 public void UpdateProgress(double increment)<br />
        {<br />
            progressIncrement = progressIncrement + increment;<br />
<br />
            Dispatcher.BeginInvoke(DispatcherPriority.Background, (SendOrPostCallback)delegate { progressBar1.SetValue(System.Windows.Controls.ProgressBar.ValueProperty, progressIncrement); }, null);<br />
        }


Any hints?
AnswerRe: Help with ProgressBar Pin
Sperneder Patrick10-Oct-09 4:32
professionalSperneder Patrick10-Oct-09 4:32 
GeneralRe: Help with ProgressBar Pin
Etienne_12310-Oct-09 7:21
Etienne_12310-Oct-09 7:21 
AnswerRe: Help with ProgressBar Pin
Nigel Ferrissey11-Oct-09 9:27
Nigel Ferrissey11-Oct-09 9:27 
AnswerRe: Help with ProgressBar Pin
Pete O'Hanlon11-Oct-09 11:11
mvePete O'Hanlon11-Oct-09 11:11 
QuestionTextBox trigger question Pin
QzRz10-Oct-09 0:55
QzRz10-Oct-09 0:55 
AnswerRe: TextBox trigger question Pin
Daniel Vaughan11-Oct-09 8:10
Daniel Vaughan11-Oct-09 8:10 
QuestionReplacing the desktop instead of running in a window? [SOLVED] Pin
seguso9-Oct-09 20:31
seguso9-Oct-09 20:31 
QuestionUser Control with collection for property Pin
Adam R Harris9-Oct-09 11:24
Adam R Harris9-Oct-09 11:24 
QuestionChange color of ribbon control..... Pin
yogeshdew9-Oct-09 6:31
yogeshdew9-Oct-09 6:31 
QuestionGetting mouse up event on WPF Figure [modified] Pin
fjparisIII9-Oct-09 5:40
fjparisIII9-Oct-09 5:40 
AnswerRe: Getting mouse up event on WPF Figure Pin
Pete O'Hanlon11-Oct-09 11:55
mvePete O'Hanlon11-Oct-09 11:55 
GeneralRe: Getting mouse up event on WPF Figure Pin
fjparisIII11-Oct-09 14:42
fjparisIII11-Oct-09 14:42 
QuestionCan we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 1:57
Anuj Banka9-Oct-09 1:57 
AnswerRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Pete O'Hanlon9-Oct-09 2:21
mvePete O'Hanlon9-Oct-09 2:21 
GeneralRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 2:23
Anuj Banka9-Oct-09 2:23 
QuestionStarting to hate silverlight Pin
gantww8-Oct-09 16:59
gantww8-Oct-09 16:59 
AnswerRe: Starting to hate silverlight Pin
lepipele8-Oct-09 18:01
lepipele8-Oct-09 18:01 

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.