|
@@ -2,6 +2,7 @@
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:Avalonia.Diagnostics.ViewModels"
|
|
xmlns:vm="using:Avalonia.Diagnostics.ViewModels"
|
|
xmlns:controls="using:Avalonia.Diagnostics.Controls"
|
|
xmlns:controls="using:Avalonia.Diagnostics.Controls"
|
|
|
|
+ xmlns:models="using:Avalonia.Diagnostics.Models"
|
|
x:Class="Avalonia.Diagnostics.Views.EventsPageView"
|
|
x:Class="Avalonia.Diagnostics.Views.EventsPageView"
|
|
Margin="2"
|
|
Margin="2"
|
|
x:DataType="vm:EventsPageViewModel">
|
|
x:DataType="vm:EventsPageViewModel">
|
|
@@ -73,34 +74,37 @@
|
|
|
|
|
|
<ListBox Name="EventsList" ItemsSource="{Binding RecordedEvents}"
|
|
<ListBox Name="EventsList" ItemsSource="{Binding RecordedEvents}"
|
|
SelectedItem="{Binding SelectedEvent, Mode=TwoWay}">
|
|
SelectedItem="{Binding SelectedEvent, Mode=TwoWay}">
|
|
|
|
+ <ListBox.Styles>
|
|
|
|
+ <Style Selector="ListBoxItem">
|
|
|
|
+ <Setter Property="Classes.handled" Value="{Binding IsHandled, DataType=vm:FiredEvent}" />
|
|
|
|
+ </Style>
|
|
|
|
+ </ListBox.Styles>
|
|
|
|
|
|
<ListBox.ItemTemplate>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<DataTemplate>
|
|
- <ListBoxItem Classes.handled="{Binding IsHandled}">
|
|
|
|
- <Grid ColumnDefinitions="Auto,Auto,Auto,*,Auto">
|
|
|
|
|
|
+ <Grid ColumnDefinitions="Auto,Auto,Auto,*,Auto">
|
|
|
|
|
|
- <TextBlock Grid.Column="0" Text="{Binding TriggerTime, StringFormat={}{0:HH:mm:ss.fff}}"/>
|
|
|
|
|
|
+ <TextBlock Grid.Column="0" Text="{Binding TriggerTime, StringFormat={}{0:HH:mm:ss.fff}}"/>
|
|
|
|
|
|
- <StackPanel Margin="10,0,0,0" Grid.Column="1" Spacing="2" Orientation="Horizontal" >
|
|
|
|
- <TextBlock Tag="{Binding Event}" DoubleTapped="NavigateTo" Text="{Binding Event.Name}" FontWeight="Bold" Classes="nav" />
|
|
|
|
- <TextBlock Text="on" />
|
|
|
|
- <TextBlock Tag="{Binding Originator}" DoubleTapped="NavigateTo" Text="{Binding Originator.HandlerName}" Classes="nav" />
|
|
|
|
- </StackPanel>
|
|
|
|
|
|
+ <StackPanel Margin="10,0,0,0" Grid.Column="1" Spacing="2" Orientation="Horizontal" >
|
|
|
|
+ <TextBlock Tag="{Binding Event}" DoubleTapped="NavigateTo" Text="{Binding Event.Name}" FontWeight="Bold" Classes="nav" />
|
|
|
|
+ <TextBlock Text="on" />
|
|
|
|
+ <TextBlock Tag="{Binding Originator}" DoubleTapped="NavigateTo" Text="{Binding Originator.HandlerName}" Classes="nav" />
|
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <StackPanel Margin="2,0,0,0" Grid.Column="2" Spacing="2" Orientation="Horizontal" IsVisible="{Binding IsHandled}" >
|
|
|
|
- <TextBlock Text="::" />
|
|
|
|
- <TextBlock Text="Handled by" />
|
|
|
|
- <TextBlock Tag="{Binding HandledBy}" DoubleTapped="NavigateTo" Text="{Binding HandledBy.HandlerName}" Classes="nav" />
|
|
|
|
- </StackPanel>
|
|
|
|
|
|
+ <StackPanel Margin="2,0,0,0" Grid.Column="2" Spacing="2" Orientation="Horizontal" IsVisible="{Binding IsHandled}" >
|
|
|
|
+ <TextBlock Text="::" />
|
|
|
|
+ <TextBlock Text="Handled by" />
|
|
|
|
+ <TextBlock Tag="{Binding HandledBy}" DoubleTapped="NavigateTo" Text="{Binding HandledBy.HandlerName}" Classes="nav" />
|
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Column="4" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
|
|
- <TextBlock Text="Routing (" />
|
|
|
|
- <TextBlock Text="{Binding Event.RoutingStrategies}"/>
|
|
|
|
- <TextBlock Text=")"/>
|
|
|
|
- </StackPanel>
|
|
|
|
|
|
+ <StackPanel Grid.Column="4" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
|
|
+ <TextBlock Text="Routing (" />
|
|
|
|
+ <TextBlock Text="{Binding Event.RoutingStrategies}"/>
|
|
|
|
+ <TextBlock Text=")"/>
|
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- </Grid>
|
|
|
|
- </ListBoxItem>
|
|
|
|
|
|
+ </Grid>
|
|
</DataTemplate>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</ListBox>
|
|
@@ -111,26 +115,29 @@
|
|
<TextBlock DockPanel.Dock="Top" FontSize="16" Text="Event chain:" />
|
|
<TextBlock DockPanel.Dock="Top" FontSize="16" Text="Event chain:" />
|
|
|
|
|
|
<ListBox ItemsSource="{Binding SelectedEvent.EventChain}">
|
|
<ListBox ItemsSource="{Binding SelectedEvent.EventChain}">
|
|
|
|
+ <ListBox.Styles>
|
|
|
|
+ <Style Selector="ListBoxItem">
|
|
|
|
+ <Setter Property="Classes.handled" Value="{Binding Handled, DataType=models:EventChainLink}" />
|
|
|
|
+ </Style>
|
|
|
|
+ </ListBox.Styles>
|
|
<ListBox.ItemTemplate>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<DataTemplate>
|
|
- <ListBoxItem Classes.handled="{Binding Handled}"
|
|
|
|
- PointerEntered="ListBoxItem_PointerEntered"
|
|
|
|
- PointerExited="ListBoxItem_PointerExited"
|
|
|
|
- >
|
|
|
|
- <StackPanel Orientation="Vertical">
|
|
|
|
-
|
|
|
|
- <Rectangle IsVisible="{Binding BeginsNewRoute}" StrokeDashArray="2,2" StrokeThickness="1" Stroke="Gray" />
|
|
|
|
-
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="2">
|
|
|
|
- <TextBlock Text="{Binding Route}" FontWeight="Bold" />
|
|
|
|
- <TextBlock Tag="{Binding}"
|
|
|
|
- DoubleTapped="NavigateTo"
|
|
|
|
- Text="{Binding HandlerName}"
|
|
|
|
- Classes="nav" />
|
|
|
|
- </StackPanel>
|
|
|
|
-
|
|
|
|
|
|
+ <StackPanel Orientation="Vertical"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ PointerEntered="ListBoxItem_PointerEntered"
|
|
|
|
+ PointerExited="ListBoxItem_PointerExited">
|
|
|
|
+
|
|
|
|
+ <Rectangle IsVisible="{Binding BeginsNewRoute}" StrokeDashArray="2,2" StrokeThickness="1" Stroke="Gray" />
|
|
|
|
+
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="2">
|
|
|
|
+ <TextBlock Text="{Binding Route}" FontWeight="Bold" />
|
|
|
|
+ <TextBlock Tag="{Binding}"
|
|
|
|
+ DoubleTapped="NavigateTo"
|
|
|
|
+ Text="{Binding HandlerName}"
|
|
|
|
+ Classes="nav" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
- </ListBoxItem>
|
|
|
|
|
|
+
|
|
|
|
+ </StackPanel>
|
|
</DataTemplate>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</ListBox>
|