示例#1
0
        //
        // Mechanics
        //

        private void DataGridMessages_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (DataGridMessages.SelectedItem is AasEventMsgEnvelope msg)
            {
                var info = msg.ToMarkup();
                TextBlockDetails.SetMarkup(info);
            }
        }
示例#2
0
        internal override void CopyDetails(DisplayBlock source)
        {
            var sourceDetails = ((TextBlock)source).Details;

            if (Details == null)
            {
                Details = new TextBlockDetails();
            }
            Details.CopyFrom(sourceDetails);
        }
示例#3
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            DataGridMessages.DataContext = _eventStore;

            TextBlockDetails.SetXaml("<Paragraph><Run>Hallo, world!</Run></Paragraph>");
        }