-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
70 lines (63 loc) · 3.55 KB
/
Copy pathMainWindow.xaml
File metadata and controls
70 lines (63 loc) · 3.55 KB
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
<Window x:Class="TestViewer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TestViewer"
mc:Ignorable="d"
Title="Test Viewer" Height="350" Width="550">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="225" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<!-- Menu pane -->
<Label>Loader name</Label>
<ComboBox x:Name="LoaderName" IsEditable="True">
<ComboBoxItem>DummyLoader.Image3dFileLoader</ComboBoxItem>
<ComboBoxItem>GEHC_CARD_US.Image3dFileLoader</ComboBoxItem>
<ComboBoxItem>CanonLoader.Image3dFileLoader</ComboBoxItem>
<ComboBoxItem>HitCV3DLoader.Image3dFileLoader</ComboBoxItem>
<ComboBoxItem>SiemensLoader.Image3dFileLoader</ComboBoxItem>
<ComboBoxItem>PhilipsLoader.Image3dFileLoader</ComboBoxItem>
<ComboBoxItem>KretzLoader.KretzImage3dFileLoader</ComboBoxItem>
</ComboBox>
<Button x:Name="LoadDefaultBtn" Click="LoadDefaultBtn_Click">Load default</Button>
<Button x:Name="LoadOutOfProcBtn" Click="LoadOutOfProcBtn_Click">Load out-of-process</Button>
<Label>File name</Label>
<DockPanel>
<TextBox Width="160" x:Name="FileName"/>
<Button DockPanel.Dock="Right" x:Name="FileSelectBtn" Click="FileSelectBtn_Click">Select</Button>
</DockPanel>
<Button x:Name="FileOpenBtn" IsEnabled="False" Click="FileOpenBtn_Click">Open</Button>
<Label>Frame number</Label>
<Slider x:Name="FrameSelector" TickPlacement="BottomRight" IsSnapToTickEnabled="True" TickFrequency="1" IsEnabled="False" ValueChanged="FrameSelector_ValueChanged" />
<Label>File info:</Label>
<TextBlock x:Name="FrameCount"/>
<TextBlock x:Name="ProbeInfo"/>
<TextBlock x:Name="InstanceUID"/>
<Label>Frame info:</Label>
<TextBlock x:Name="FrameTime"/>
</StackPanel>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Image grid -->
<Image x:Name="ImageXY" Grid.Column="0" Grid.Row="0" RenderOptions.BitmapScalingMode="NearestNeighbor"/>
<Label TextBlock.Foreground="DimGray" Grid.Column="0" Grid.Row="0">X-Y plane</Label>
<Image x:Name="ImageXZ" Grid.Column="1" Grid.Row="0" RenderOptions.BitmapScalingMode="NearestNeighbor"/>
<Label TextBlock.Foreground="DimGray" Grid.Column="1" Grid.Row="0">X-Z plane</Label>
<Image x:Name="ImageZY" Grid.Column="0" Grid.Row="1" RenderOptions.BitmapScalingMode="NearestNeighbor"/>
<Label TextBlock.Foreground="DimGray" Grid.Column="0" Grid.Row="1">Z-Y plane</Label>
<Path x:Name="ECG" Grid.Column="1" Grid.Row="1"/>
<Label TextBlock.Foreground="DimGray" Grid.Column="1" Grid.Row="1">ECG</Label>
</Grid>
</Grid>
</Window>