First we need to define new "reactive" memory target. This target will notify us when some log item is received in memory.
Now we are ready to define our logging control. We will keep last 50 log messages in the ObservableColection, which we will bind to the ListView control. We also register event for our memory target inwhich we update our collection.
Following is the simple design of the logging control. Please note the binding.
Previous XAML code uses couple converters which allow us to display messages in different color.
That's all folks. With this control you are ready to display your logs directly in your application! Comments welcome!