|
0
|
1 |
<UserControl
|
|
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
6 |
mc:Ignorable="d"
|
|
|
7 |
xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
|
|
|
8 |
xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
|
|
|
9 |
x:Class="Iri.Modernisation.Controls.View.ConsultationBookView" d:DesignHeight="536" Width="232">
|
|
|
10 |
<UserControl.Resources>
|
|
|
11 |
<Converter:BoolToVisibility x:Key="BoolToVisibility"></Converter:BoolToVisibility>
|
|
|
12 |
</UserControl.Resources>
|
|
|
13 |
<StackPanel x:Name="ConsultationBookViewPanel">
|
|
|
14 |
<TextBlock x:Name="BookTitleLabel" Text="{Binding Title}" TextWrapping="Wrap" d:LayoutOverrides="Width"/>
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
<View:VideoViewer DataContext="{Binding ActualVideoSourceVM}" x:Name="VideoViewer" HorizontalAlignment="Left" Width="224"/>
|
|
|
18 |
|
|
|
19 |
<StackPanel x:Name="SegmentInfoPanel" Margin="0,0,8,0">
|
|
|
20 |
<TextBlock x:Name="SegmentTitleLabel" TextWrapping="Wrap" Text="{Binding SelectedIndexTitle}"></TextBlock>
|
|
|
21 |
<ScrollViewer x:Name="SegmentDescriptionScroller" Height="73" >
|
|
|
22 |
<TextBlock Text="{Binding SelectedIndexDescription}" x:Name="SegmentDescriptionLabel" TextWrapping="Wrap" Height="65"><Run Text="Description"/><Run Text=" Segment"/></TextBlock>
|
|
|
23 |
</ScrollViewer>
|
|
|
24 |
<TextBlock x:Name="SegmentKeywordLabel" TextWrapping="Wrap" Text="{Binding SelectedIndexTags,Mode=TwoWay}"></TextBlock>
|
|
|
25 |
</StackPanel>
|
|
|
26 |
<StackPanel x:Name="DisplayControlPanel" Height="28" Orientation="Horizontal">
|
|
|
27 |
<ToggleButton x:Name="DisplayAnnotationButton" Content="Display" IsChecked="True"/>
|
|
|
28 |
</StackPanel>
|
|
|
29 |
<ListBox Visibility="{Binding IsChecked, Converter={StaticResource BoolToVisibility}, ElementName=DisplayAnnotationButton, Mode=OneWay}" x:Name="AnnotationList" Height="371" ItemsSource="{Binding SelectedIndexAnnotation,Mode=TwoWay}">
|
|
|
30 |
<ListBox.ItemTemplate>
|
|
|
31 |
<DataTemplate>
|
|
|
32 |
<View:AnnotationViewer></View:AnnotationViewer>
|
|
|
33 |
</DataTemplate>
|
|
|
34 |
</ListBox.ItemTemplate>
|
|
|
35 |
<!--<Ctrl:AnnotationViewer d:IsPrototypingComposition="True" HorizontalAlignment="Right" Width="306" Height="309" Margin="0,0,1,0"/>-->
|
|
|
36 |
</ListBox>
|
|
|
37 |
</StackPanel>
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
</UserControl> |