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

WPF

 
AnswerRe: How to use DrawingGroup and GeometryDrawing classes in Silverlight Pin
Mark Salsbery12-Oct-09 6:08
Mark Salsbery12-Oct-09 6:08 
QuestionDelete button with Data grid Pin
ravi.vellanky11-Oct-09 21:29
ravi.vellanky11-Oct-09 21:29 
AnswerRe: Delete button with Data grid Pin
Anudeep Jaiswal - MCA12-Oct-09 1:36
Anudeep Jaiswal - MCA12-Oct-09 1:36 
GeneralBinding StringWriter to WPF TextBox Pin
dwotx11-Oct-09 13:07
dwotx11-Oct-09 13:07 
GeneralRe: Binding StringWriter to WPF TextBox Pin
Pete O'Hanlon12-Oct-09 11:16
mvePete O'Hanlon12-Oct-09 11:16 
Questionve silverlight map control-web services Pin
billy dev11-Oct-09 5:59
billy dev11-Oct-09 5:59 
AnswerRe: ve silverlight map control-web services Pin
Mark Salsbery11-Oct-09 10:41
Mark Salsbery11-Oct-09 10:41 
GeneralRe: ve silverlight map control-web services Pin
billy dev12-Oct-09 10:19
billy dev12-Oct-09 10:19 
AnswerRe: ve silverlight map control-web services Pin
Mark Salsbery11-Oct-09 11:14
Mark Salsbery11-Oct-09 11:14 
GeneralRe: ve silverlight map control-web services Pin
billy dev12-Oct-09 10:34
billy dev12-Oct-09 10:34 
GeneralRe: ve silverlight map control-web services Pin
Mark Salsbery12-Oct-09 10:54
Mark Salsbery12-Oct-09 10:54 
GeneralRe: ve silverlight map control-web services Pin
billy dev13-Oct-09 10:56
billy dev13-Oct-09 10:56 
GeneralRe: ve silverlight map control-web services Pin
Mark Salsbery13-Oct-09 12:22
Mark Salsbery13-Oct-09 12:22 
QuestionHow do I make rounded corners for textbox, combobox and other controls Pin
ahsansharjeel11-Oct-09 3:03
ahsansharjeel11-Oct-09 3:03 
AnswerRe: How do I make rounded corners for textbox, combobox and other controls Pin
Pete O'Hanlon11-Oct-09 10:35
mvePete O'Hanlon11-Oct-09 10:35 
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 

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.