private async void LogUpdated(HttpEventData data)
 {
     await _dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         LogEntries.Add(new EventData { Data = data });
     });
 }
        private async void LogHttpEvent(HttpEventData data)
        {
            await _dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                if (data != null)
                {
                    LogEntries.Add(new EventData { Data = data, IsRequest = true });
                    LogEntries.Add(new EventData { Data = data, IsRequest = false });

                    NotifyLogWindow();
                }
            });
        }
        private async void LogUpdated(HttpEventData data)
        {
            string request = string.Format("{0:HH:mm:ss}  {1} {2}",
                    data.TimeStamp, data.Method, data.Uri);
            string response = data.StatusCode;

            await LogEntries.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    //                    ContentPresenter contentPresenter = FindVisualChild<ContentPresenter>(yourListBoxItem);
                    var template = LogEntries.Template;

                    LogEntries.Items.Add(request);
                    LogEntries.Items.Add(response);

                    var eventData = new EventData { Data = data };
                    _items.Add(eventData);
                    _items.Add(eventData);
                });
        }