Click here to Skip to main content
15,437,002 members
Home / Discussions / C#
   

C#

 
AnswerRe: Prevent adding of nodes to a TreeNode? Pin
Eddy Vluggen30-Jan-18 0:15
professionalEddy Vluggen30-Jan-18 0:15 
AnswerRe: Prevent adding of nodes to a TreeNode? Pin
BillWoodruff3-Feb-18 7:03
mveBillWoodruff3-Feb-18 7:03 
GeneralRe: Prevent adding of nodes to a TreeNode? Pin
primem0ver3-Feb-18 22:52
Memberprimem0ver3-Feb-18 22:52 
GeneralRe: Prevent adding of nodes to a TreeNode? Pin
BillWoodruff5-Feb-18 18:34
mveBillWoodruff5-Feb-18 18:34 
GeneralRe: Prevent adding of nodes to a TreeNode? Pin
primem0ver9-Feb-18 1:21
Memberprimem0ver9-Feb-18 1:21 
GeneralRe: Prevent adding of nodes to a TreeNode? Pin
BillWoodruff10-Feb-18 19:48
mveBillWoodruff10-Feb-18 19:48 
QuestionHow to debug a WndProc function with multiple listviews ? Pin
Member 245846727-Jan-18 22:48
MemberMember 245846727-Jan-18 22:48 
QuestionUpdate bound WPF controls from another thread Pin
je-wo25-Jan-18 7:14
Memberje-wo25-Jan-18 7:14 
I currently run into the problem to update WPF controls from a worker thread.
After searching on Google for hours I hope to get an answer here.

Situation:
- I do have a GUI
- The GUI has a viewmodel attached to it
- The videmodel contains all properties for the binding. This contains int, float, bool and string property values as well as an int[] array.
- All properties look like this:

C#
private volatile string _InputTypeString = "";
public string InputTypeString
{
    get { return _InputTypeString; }
    set { _InputTypeString = value; OnPropertyChanged("InputTypeString"); }
}



- All of the controls are bound to the viewmodel via XML bindings
- When I do not use the GUI updates, my Code runs fine for hours and as soon as I update the GUI I run into problems within a couple of minutes.

What I have tried:

What I have already tried:

- make all variables of the property objects volatile

- delegates via

C#
Action b = delegate { windowmodel.Frame_Current = FrameX };
Application.Current.Dispatcher.Invoke(b, DispatcherPriority.Normal);


- locks

C#
lock (windowmodel.AudioLevelArray)


Any idea how to get the GUI related properties thread-safe?
AnswerRe: Update bound WPF controls from another thread Pin
Richard Deeming25-Jan-18 9:02
mveRichard Deeming25-Jan-18 9:02 
AnswerRe: Update bound WPF controls from another thread Pin
Pete O'Hanlon25-Jan-18 22:41
mvaPete O'Hanlon25-Jan-18 22:41 
QuestionEliminate LINQ for List<int> ? Pin
Member 245846724-Jan-18 19:50
MemberMember 245846724-Jan-18 19:50 
AnswerRe: Eliminate LINQ for List<int> ? Pin
OriginalGriff24-Jan-18 20:16
mveOriginalGriff24-Jan-18 20:16 
SuggestionRe: Eliminate LINQ for List<int> ? Pin
Richard Deeming25-Jan-18 8:56
mveRichard Deeming25-Jan-18 8:56 
AnswerRe: Eliminate LINQ for List<int> ? Pin
BillWoodruff25-Jan-18 23:58
mveBillWoodruff25-Jan-18 23:58 
GeneralRe: Eliminate LINQ for List<int> ? Pin
#realJSOP30-Jan-18 3:39
mva#realJSOP30-Jan-18 3:39 
GeneralRe: Eliminate LINQ for List<int> ? Pin
BillWoodruff30-Jan-18 6:07
mveBillWoodruff30-Jan-18 6:07 
QuestionPaint Image on Form with BitBlt? Pin
Darla Fanbridge24-Jan-18 3:12
MemberDarla Fanbridge24-Jan-18 3:12 
AnswerRe: Paint Image on Form with BitBlt? Pin
OriginalGriff24-Jan-18 4:05
mveOriginalGriff24-Jan-18 4:05 
QuestionSQL Connection string ignoring UserID Pin
Member 1240626023-Jan-18 2:02
MemberMember 1240626023-Jan-18 2:02 
AnswerRe: SQL Connection string ignoring UserID Pin
Jochen Arndt23-Jan-18 2:25
professionalJochen Arndt23-Jan-18 2:25 
QuestionHow can i send text to the Devline camera? Pin
Member 1312505222-Jan-18 23:29
MemberMember 1312505222-Jan-18 23:29 
AnswerRe: How can i send text to the Devline camera? Pin
Pete O'Hanlon22-Jan-18 23:31
mvaPete O'Hanlon22-Jan-18 23:31 
QuestionWPF C# check if logged on with MS account Pin
Member 798746122-Jan-18 22:50
MemberMember 798746122-Jan-18 22:50 
AnswerRe: WPF C# check if logged on with MS account Pin
Richard Deeming23-Jan-18 0:29
mveRichard Deeming23-Jan-18 0:29 
GeneralRe: WPF C# check if logged on with MS account Pin
Member 798746123-Jan-18 1:03
MemberMember 798746123-Jan-18 1:03 

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.