// // Mechanics // private void DataGridMessages_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (DataGridMessages.SelectedItem is AasEventMsgEnvelope msg) { var info = msg.ToMarkup(); TextBlockDetails.SetMarkup(info); } }
internal override void CopyDetails(DisplayBlock source) { var sourceDetails = ((TextBlock)source).Details; if (Details == null) { Details = new TextBlockDetails(); } Details.CopyFrom(sourceDetails); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { DataGridMessages.DataContext = _eventStore; TextBlockDetails.SetXaml("<Paragraph><Run>Hallo, world!</Run></Paragraph>"); }