Comments for Code musings in C# https://www.thomasb.fr My coding journey and discovery Tue, 03 Mar 2020 09:50:49 +0000 hourly 1 https://wordpress.org/?v=6.4.3 Comment on Start a WPF application in the notification area with Caliburn.Micro by Thierry https://www.thomasb.fr/2015/08/start-a-wpf-application-in-the-notification-area-with-caliburn-micro/#comment-7 Fri, 16 Sep 2016 19:25:00 +0000 http://thomasb.fr/?p=264#comment-7 Thank you very much @thomasbroust:disqus . I implement like you suggest, it works like a charm.

]]>
Comment on Start a WPF application in the notification area with Caliburn.Micro by Thierry https://www.thomasb.fr/2015/08/start-a-wpf-application-in-the-notification-area-with-caliburn-micro/#comment-6 Fri, 16 Sep 2016 08:17:00 +0000 http://thomasb.fr/?p=264#comment-6 Thanks for your reply. I will try this way, tonight.

]]>
Comment on Start a WPF application in the notification area with Caliburn.Micro by Thomas B https://www.thomasb.fr/2015/08/start-a-wpf-application-in-the-notification-area-with-caliburn-micro/#comment-5 Fri, 16 Sep 2016 07:48:00 +0000 http://thomasb.fr/?p=264#comment-5 In the template, navigation is achieved like this :
– Create another view and viewmodel like the MainViewModel (subscribe to the event aggregator)
– In the viewmodel, in the method changing the screen, instantiate a new ChangeMainScreenEvent and set the Screen property to the instance of the screen you want to display.
– Use the Publish method of the event aggregator to send the ChangeMainScreenEvent to all subscribers. The MasterViewModel will then change the active screen (see MasterViewModel.Handle(ChangeMainScreenEvent).

All of this uses the concepts of event aggregator (http://caliburnmicro.com/documentation/event-aggregator) and screen conductors (http://caliburnmicro.com/documentation/composition). You can probably implement navigation in another way, but I like to use events like this.

]]>
Comment on Start a WPF application in the notification area with Caliburn.Micro by Thierry https://www.thomasb.fr/2015/08/start-a-wpf-application-in-the-notification-area-with-caliburn-micro/#comment-4 Thu, 15 Sep 2016 15:51:00 +0000 http://thomasb.fr/?p=264#comment-4 Hello,
Great project, this helps me a lot. I am new on wpf, i’m wondering how can you manage Navigation on your project ?
Suppose we have a button on MainView to Navigate to another Page, like AnotherPageView, how can you manage this here ?
Do you need to add a service like NavigationService ?

]]>
Comment on WPF/SOAP configuration for third-party webservice with empty security headers by Thomas B https://www.thomasb.fr/2014/07/wpf-soap-configuration-third-party-empty-security-headers/#comment-3 Sun, 16 Nov 2014 09:37:00 +0000 http://thomasb.fr/?p=117#comment-3 It looks like the last time I used this config, I was using CustomMessageBindingSection. But I can’t really help you more, because it turned out there was another problem in the webservice itself (something about php/.net compatibility), and I switched to a completely different config.

]]>
Comment on WPF/SOAP configuration for third-party webservice with empty security headers by Alex hertz https://www.thomasb.fr/2014/07/wpf-soap-configuration-third-party-empty-security-headers/#comment-2 Sun, 16 Nov 2014 05:21:00 +0000 http://thomasb.fr/?p=117#comment-2 did you have to change the bindingelementextensions type from MyClient.SOAP.CustomMessageBindingSection to MyClient.SOAP.CustomTextMessageEncodingElement ? The code will not work using CustomMessageBindingSection.

]]>