Delicious Cake
✅ ERROR: The calling thread cannot access this object because a different thread owns it.
That worked! Not getting the colour I expected from the username though, that might be cause either converting it wrong or grabbing the wrong value from TwitchLib's
OnMessageReceivedArgs
23 replies
✅ ERROR: The calling thread cannot access this object because a different thread owns it.
That's an excellent example! Unfortunately it still gives me this error when I try to add the messages :(
Line:
ChatHistoryCollection.Add(new ChatMessage { UsernameColour= new SolidColorBrush(mediaColor), Username = username, Message = message });
Error:
System.NotSupportedException: 'This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.'
23 replies