aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogAnalyzer/ui/DbgEventTreeItems.itemp
blob: 0dd44c748950c0503554605b1c04ec099008a9f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8" ?>
<ItemTemplate Data="Events">
	<ListItem Height="Fit"
						Selected="{/exp.Background=${ControlHighlight}}"
						Unselected="{/exp.Background=Transparent}">
		<Expandable Name="exp" Caption="{type}" MouseDoubleClick="/onClickForExpand" CacheEnabled="true" >
			<Template>
					<VerticalStack>
						<Border CornerRadius="2" Margin="0" Height="Fit" MouseDoubleClick="./onClickForExpand"
								Foreground="Transparent"
								Background="{./Background}"
								MouseEnter="{Foreground=DimGrey}"
								MouseLeave="{Foreground=Transparent}">
							<HorizontalStack Spacing="2" >
								<Image Margin="1" Width="9" Height="9" Focusable="true" MouseDown="./onClickForExpand"
									Path="{./Image}"
									Visible="{HasChildEvents}"
									SvgSub="{./IsExpanded}"
									MouseEnter="{Background=LightGrey}"
									MouseLeave="{Background=Transparent}"/>
								<Label Text="{./Caption}" Width="80" Font="mono, 8" />
								<Label Text="{DurationMS}" Width="40" Font="mono, 8" TextAlignment="Center" Background="DimGrey"/>
								<DbgEventWidget Event="{}" Tooltip="#Dbg.DbgEvtTooltip.crow" Width="Stretched" Height="5"/>
							</HorizontalStack>
						</Border>
						<Container Name="Content" Visible="false"/>
					</VerticalStack>
			</Template>
			<HorizontalStack Height="Fit">
				<Widget Width="12" Height="10"/>
				<VerticalStack Height="Fit" Name="ItemsContainer"/>
			</HorizontalStack>
		</Expandable>
	</ListItem>
</ItemTemplate>		
<ItemTemplate Data="Events" DataType="DbgWidgetEvent">
	<ListItem  Height="Fit"
						Selected="{/exp.Background=${ControlHighlight}}"
						Unselected="{/exp.Background=Transparent}">
		<Expandable Name="exp" Caption="{type}" MouseDoubleClick="/onClickForExpand" CacheEnabled="true" >
			<Template>
				<VerticalStack>
					<Border CornerRadius="2" Margin="0" Height="Fit" MouseDoubleClick="./onClickForExpand"
							Foreground="Transparent"
							Background="{./Background}"
							MouseEnter="{Foreground=DimGrey}"
							MouseLeave="{Foreground=Transparent}">
						<HorizontalStack Spacing="2" >
							<Image Margin="1" Width="9" Height="9" Focusable="true" MouseDown="./onClickForExpand"
								Path="{./Image}"
								Visible="{HasChildEvents}"
								SvgSub="{./IsExpanded}"
								MouseEnter="{Background=LightGrey}"
								MouseLeave="{Background=Transparent}"/>
							<Label Text="{./Caption}" Width="80" Font="mono, 8" />
							<Label Text="{DurationMS}" Width="40" Font="mono, 8" TextAlignment="Center" Background="DimGrey"/>
							<Label Text="{InstanceIndex}" Width="40" Font="mono, 8" TextAlignment="Center" Background="DimGrey"/>
							<DbgEventWidget Event="{}" Tooltip="#Dbg.DbgEvtTooltip.crow" Width="Stretched" Height="5"/>
						</HorizontalStack>
					</Border>
					<Container Name="Content" Visible="false"/>
				</VerticalStack>
			</Template>
			<HorizontalStack Height="Fit">
				<Widget Width="12" Height="10"/>
				<VerticalStack Height="Fit" Name="ItemsContainer"/>
			</HorizontalStack>
		</Expandable>
	</ListItem>
</ItemTemplate>