private void OutlookBar_ItemPositionChanged(object sender, PositionChangedEventArgs e) { RadOutlookBarItem obItem = e.OriginalSource as RadOutlookBarItem; string header = obItem.Header.ToString(); string newPosition = e.NewPosition.ToString(); string oldPosition = e.OldPosition.ToString(); LogItem logItem = new LogItem(header, newPosition, oldPosition, DateTime.Now.TimeOfDay); Dispatcher.BeginInvoke(new Action<LogItem>(AddLogItem), logItem); }
private void AddLogItem(LogItem logItem) { this.log.Items.Insert(0, logItem); this.log.SelectedItem = logItem; }