ChaChaCha
ChaChaCha
Explore posts from servers
CC#
Created by ChaChaCha on 7/25/2024 in #help
MVVM toolkit receive method of messaging service
Hi guys was wondering if there is a convention for using messaging service? implementing the irecipient of the message makes a Receive method to execute when the message is received (duh) but if there are many receive methods its quite ambiguous is there a way around this? can i put receive methods at the bottom of the class file that pass and call an aptly named method that is higher up for more code readability? would this effect performance and memory? an example would be something like public class Foo: IRecipient<BarMessage> { public void Receive(BarMessage message) => private void DoBarMessage(message); }
49 replies
CC#
Created by ChaChaCha on 11/10/2023 in #help
Make every textblock in an itemscontrol with an OCollection<string> as the source have a click event
I have an itemscontrl with a OCollection as the source which means it can be updated i have a textblock to display each string in the datatemplaet how can i have every textblock even after updating the list have a click remove event?
4 replies