|
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:View="clr-namespace:Iri.Modernisation.Controls.View"
|
|
|
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
6 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
7 |
mc:Ignorable="d"
|
|
|
8 |
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
|
|
9 |
x:Class="Iri.Modernisation.Controls.View.ConsultationView">
|
|
|
10 |
|
|
|
11 |
<UserControl.Resources>
|
|
|
12 |
<Style x:Key="ListBoxItemStyle1" TargetType="ListBoxItem">
|
|
|
13 |
<Setter Property="Padding" Value="3"/>
|
|
|
14 |
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
15 |
<Setter Property="VerticalContentAlignment" Value="Top"/>
|
|
|
16 |
<Setter Property="BorderThickness" Value="1"/>
|
|
|
17 |
<Setter Property="TabNavigation" Value="Local"/>
|
|
|
18 |
<Setter Property="Template">
|
|
|
19 |
<Setter.Value>
|
|
|
20 |
<ControlTemplate TargetType="ListBoxItem">
|
|
|
21 |
<Grid Background="{TemplateBinding Background}">
|
|
|
22 |
<VisualStateManager.VisualStateGroups>
|
|
|
23 |
<VisualStateGroup x:Name="CommonStates">
|
|
|
24 |
<VisualState x:Name="Normal"/>
|
|
|
25 |
<VisualState x:Name="MouseOver">
|
|
|
26 |
<Storyboard>
|
|
|
27 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor" Storyboard.TargetProperty="Opacity">
|
|
|
28 |
<SplineDoubleKeyFrame KeyTime="0" Value=".35"/>
|
|
|
29 |
</DoubleAnimationUsingKeyFrames>
|
|
|
30 |
</Storyboard>
|
|
|
31 |
</VisualState>
|
|
|
32 |
<VisualState x:Name="Disabled">
|
|
|
33 |
<Storyboard>
|
|
|
34 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="Opacity">
|
|
|
35 |
<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
|
|
|
36 |
</DoubleAnimationUsingKeyFrames>
|
|
|
37 |
</Storyboard>
|
|
|
38 |
</VisualState>
|
|
|
39 |
</VisualStateGroup>
|
|
|
40 |
<VisualStateGroup x:Name="SelectionStates">
|
|
|
41 |
<VisualState x:Name="Unselected"/>
|
|
|
42 |
<VisualState x:Name="Selected">
|
|
|
43 |
<Storyboard>
|
|
|
44 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor2" Storyboard.TargetProperty="Opacity">
|
|
|
45 |
<SplineDoubleKeyFrame KeyTime="0" Value=".75"/>
|
|
|
46 |
</DoubleAnimationUsingKeyFrames>
|
|
|
47 |
</Storyboard>
|
|
|
48 |
</VisualState>
|
|
|
49 |
</VisualStateGroup>
|
|
|
50 |
<VisualStateGroup x:Name="FocusStates">
|
|
|
51 |
<VisualState x:Name="Focused">
|
|
|
52 |
<Storyboard>
|
|
|
53 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Visibility">
|
|
|
54 |
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
55 |
<DiscreteObjectKeyFrame.Value>
|
|
|
56 |
<Visibility>Visible</Visibility>
|
|
|
57 |
</DiscreteObjectKeyFrame.Value>
|
|
|
58 |
</DiscreteObjectKeyFrame>
|
|
|
59 |
</ObjectAnimationUsingKeyFrames>
|
|
|
60 |
</Storyboard>
|
|
|
61 |
</VisualState>
|
|
|
62 |
<VisualState x:Name="Unfocused"/>
|
|
|
63 |
</VisualStateGroup>
|
|
|
64 |
</VisualStateManager.VisualStateGroups>
|
|
|
65 |
<Rectangle x:Name="fillColor" RadiusX="1" RadiusY="1" IsHitTestVisible="False" Opacity="0"/>
|
|
|
66 |
<Rectangle x:Name="fillColor2" Fill="#FFBADDE9" RadiusX="1" RadiusY="1" IsHitTestVisible="False" Opacity="0"/>
|
|
|
67 |
<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Canvas.ZIndex="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
|
|
|
68 |
<Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="1" RadiusY="1" Visibility="Collapsed"/>
|
|
|
69 |
</Grid>
|
|
|
70 |
</ControlTemplate>
|
|
|
71 |
</Setter.Value>
|
|
|
72 |
</Setter>
|
|
|
73 |
<Setter Property="Background" Value="{x:Null}"/>
|
|
|
74 |
</Style>
|
|
|
75 |
<ControlTemplate x:Key="ValidationToolTipTemplate">
|
|
|
76 |
<Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
|
|
|
77 |
<VisualStateManager.VisualStateGroups>
|
|
|
78 |
<VisualStateGroup x:Name="OpenStates">
|
|
|
79 |
<VisualStateGroup.Transitions>
|
|
|
80 |
<VisualTransition GeneratedDuration="0"/>
|
|
|
81 |
<VisualTransition GeneratedDuration="0:0:0.2" To="Open">
|
|
|
82 |
<Storyboard>
|
|
|
83 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="xform" Storyboard.TargetProperty="X">
|
|
|
84 |
<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
|
|
|
85 |
</DoubleAnimationUsingKeyFrames>
|
|
|
86 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
|
|
|
87 |
<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
|
|
|
88 |
</DoubleAnimationUsingKeyFrames>
|
|
|
89 |
</Storyboard>
|
|
|
90 |
</VisualTransition>
|
|
|
91 |
</VisualStateGroup.Transitions>
|
|
|
92 |
<VisualState x:Name="Closed">
|
|
|
93 |
<Storyboard>
|
|
|
94 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
|
|
|
95 |
<SplineDoubleKeyFrame KeyTime="0" Value="0"/>
|
|
|
96 |
</DoubleAnimationUsingKeyFrames>
|
|
|
97 |
</Storyboard>
|
|
|
98 |
</VisualState>
|
|
|
99 |
<VisualState x:Name="Open">
|
|
|
100 |
<Storyboard>
|
|
|
101 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="xform" Storyboard.TargetProperty="X">
|
|
|
102 |
<SplineDoubleKeyFrame KeyTime="0" Value="0"/>
|
|
|
103 |
</DoubleAnimationUsingKeyFrames>
|
|
|
104 |
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
|
|
|
105 |
<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
|
|
|
106 |
</DoubleAnimationUsingKeyFrames>
|
|
|
107 |
</Storyboard>
|
|
|
108 |
</VisualState>
|
|
|
109 |
</VisualStateGroup>
|
|
|
110 |
</VisualStateManager.VisualStateGroups>
|
|
|
111 |
<Grid.RenderTransform>
|
|
|
112 |
<TranslateTransform x:Name="xform" X="-25"/>
|
|
|
113 |
</Grid.RenderTransform>
|
|
|
114 |
<Border Margin="4,4,-4,-4" Background="#052A2E31" CornerRadius="5"/>
|
|
|
115 |
<Border Margin="3,3,-3,-3" Background="#152A2E31" CornerRadius="4"/>
|
|
|
116 |
<Border Margin="2,2,-2,-2" Background="#252A2E31" CornerRadius="3"/>
|
|
|
117 |
<Border Margin="1,1,-1,-1" Background="#352A2E31" CornerRadius="2"/>
|
|
|
118 |
<Border Background="#FFDC000C" CornerRadius="2"/>
|
|
|
119 |
<Border CornerRadius="2">
|
|
|
120 |
<TextBlock Margin="8,4,8,4" MaxWidth="250" UseLayoutRounding="false" Foreground="White" Text="{Binding (Validation.Errors)[0].ErrorContent}" TextWrapping="Wrap"/>
|
|
|
121 |
</Border>
|
|
|
122 |
</Grid>
|
|
|
123 |
</ControlTemplate>
|
|
|
124 |
<Style x:Key="ListBoxStyle1" TargetType="ListBox">
|
|
|
125 |
<Setter Property="Padding" Value="1"/>
|
|
|
126 |
<Setter Property="Background" Value="#FFFFFFFF"/>
|
|
|
127 |
<Setter Property="Foreground" Value="#FF000000"/>
|
|
|
128 |
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
129 |
<Setter Property="VerticalContentAlignment" Value="Top"/>
|
|
|
130 |
<Setter Property="IsTabStop" Value="False"/>
|
|
|
131 |
<Setter Property="BorderThickness" Value="1"/>
|
|
|
132 |
<Setter Property="TabNavigation" Value="Once"/>
|
|
|
133 |
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
|
|
134 |
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
|
|
135 |
<Setter Property="BorderBrush">
|
|
|
136 |
<Setter.Value>
|
|
|
137 |
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
|
138 |
<GradientStop Color="#FFA3AEB9" Offset="0"/>
|
|
|
139 |
<GradientStop Color="#FF8399A9" Offset="0.375"/>
|
|
|
140 |
<GradientStop Color="#FF718597" Offset="0.375"/>
|
|
|
141 |
<GradientStop Color="#FF617584" Offset="1"/>
|
|
|
142 |
</LinearGradientBrush>
|
|
|
143 |
</Setter.Value>
|
|
|
144 |
</Setter>
|
|
|
145 |
<Setter Property="Template">
|
|
|
146 |
<Setter.Value>
|
|
|
147 |
<ControlTemplate TargetType="ListBox">
|
|
|
148 |
<Grid>
|
|
|
149 |
<VisualStateManager.VisualStateGroups>
|
|
|
150 |
<VisualStateGroup x:Name="ValidationStates">
|
|
|
151 |
<VisualState x:Name="Valid"/>
|
|
|
152 |
<VisualState x:Name="InvalidUnfocused">
|
|
|
153 |
<Storyboard>
|
|
|
154 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
|
|
155 |
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
156 |
<DiscreteObjectKeyFrame.Value>
|
|
|
157 |
<Visibility>Visible</Visibility>
|
|
|
158 |
</DiscreteObjectKeyFrame.Value>
|
|
|
159 |
</DiscreteObjectKeyFrame>
|
|
|
160 |
</ObjectAnimationUsingKeyFrames>
|
|
|
161 |
</Storyboard>
|
|
|
162 |
</VisualState>
|
|
|
163 |
<VisualState x:Name="InvalidFocused">
|
|
|
164 |
<Storyboard>
|
|
|
165 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
|
|
|
166 |
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
167 |
<DiscreteObjectKeyFrame.Value>
|
|
|
168 |
<Visibility>Visible</Visibility>
|
|
|
169 |
</DiscreteObjectKeyFrame.Value>
|
|
|
170 |
</DiscreteObjectKeyFrame>
|
|
|
171 |
</ObjectAnimationUsingKeyFrames>
|
|
|
172 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
|
|
|
173 |
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
174 |
<DiscreteObjectKeyFrame.Value>
|
|
|
175 |
<System:Boolean>True</System:Boolean>
|
|
|
176 |
</DiscreteObjectKeyFrame.Value>
|
|
|
177 |
</DiscreteObjectKeyFrame>
|
|
|
178 |
</ObjectAnimationUsingKeyFrames>
|
|
|
179 |
</Storyboard>
|
|
|
180 |
</VisualState>
|
|
|
181 |
</VisualStateGroup>
|
|
|
182 |
</VisualStateManager.VisualStateGroups>
|
|
|
183 |
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2">
|
|
|
184 |
<ScrollViewer x:Name="ScrollViewer" BorderBrush="Transparent" BorderThickness="0" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}">
|
|
|
185 |
<ItemsPresenter/>
|
|
|
186 |
</ScrollViewer>
|
|
|
187 |
</Border>
|
|
|
188 |
<Border x:Name="ValidationErrorElement" Visibility="Collapsed" BorderBrush="#FFDB000C" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2">
|
|
|
189 |
<ToolTipService.ToolTip>
|
|
|
190 |
<ToolTip x:Name="validationTooltip" Template="{StaticResource ValidationToolTipTemplate}" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}">
|
|
|
191 |
<ToolTip.Triggers>
|
|
|
192 |
<EventTrigger RoutedEvent="Canvas.Loaded">
|
|
|
193 |
<BeginStoryboard>
|
|
|
194 |
<Storyboard>
|
|
|
195 |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsHitTestVisible">
|
|
|
196 |
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
197 |
<DiscreteObjectKeyFrame.Value>
|
|
|
198 |
<System:Boolean>true</System:Boolean>
|
|
|
199 |
</DiscreteObjectKeyFrame.Value>
|
|
|
200 |
</DiscreteObjectKeyFrame>
|
|
|
201 |
</ObjectAnimationUsingKeyFrames>
|
|
|
202 |
</Storyboard>
|
|
|
203 |
</BeginStoryboard>
|
|
|
204 |
</EventTrigger>
|
|
|
205 |
</ToolTip.Triggers>
|
|
|
206 |
</ToolTip>
|
|
|
207 |
</ToolTipService.ToolTip>
|
|
|
208 |
<Grid Height="10" HorizontalAlignment="Right" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
|
|
|
209 |
<Path Fill="#FFDC000C" Margin="-1,3,0,0" Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z"/>
|
|
|
210 |
<Path Fill="#ffffff" Margin="-1,3,0,0" Data="M 0,0 L2,0 L 8,6 L8,8"/>
|
|
|
211 |
</Grid>
|
|
|
212 |
</Border>
|
|
|
213 |
</Grid>
|
|
|
214 |
</ControlTemplate>
|
|
|
215 |
</Setter.Value>
|
|
|
216 |
</Setter>
|
|
|
217 |
</Style>
|
|
|
218 |
</UserControl.Resources>
|
|
|
219 |
|
|
|
220 |
<Grid x:Name="LayoutRoot" Background="Black">
|
|
|
221 |
|
|
|
222 |
<View:ConsultationBookView DataContext="{Binding ConsultationBookViewContextMenu,Mode=TwoWay}" x:Name="ConsultationBookViewElement" Margin="0,0,8,0" VerticalAlignment="Top" HorizontalAlignment="Right" Foreground="White"/>
|
|
28
|
223 |
<View:AnnotationMaker DataContext="{Binding ViewModelAnnotationMaker}" x:Name="AnnotationMakerElement" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,256,84"/>
|
|
|
224 |
<ListBox SelectedIndex="{Binding SelectedVideoBookIndex,Mode=TwoWay}" x:Name="listBox" Margin="0,0,256,408" ItemsSource="{Binding SelectedVideoBooks}" Foreground="White" HorizontalAlignment="Right" >
|
|
0
|
225 |
<ListBox.ItemTemplate>
|
|
|
226 |
<DataTemplate >
|
|
|
227 |
<View:BookTimeLine/>
|
|
|
228 |
</DataTemplate>
|
|
|
229 |
</ListBox.ItemTemplate>
|
|
|
230 |
|
|
|
231 |
</ListBox>
|
|
28
|
232 |
<View:PolemicView Margin="8,0,584,48" RenderTransformOrigin="0.5,0.5" Height="320" VerticalAlignment="Bottom">
|
|
|
233 |
<View:PolemicView.RenderTransform>
|
|
|
234 |
<TransformGroup>
|
|
|
235 |
<ScaleTransform ScaleX="-1"/>
|
|
|
236 |
<SkewTransform/>
|
|
|
237 |
<RotateTransform/>
|
|
|
238 |
<TranslateTransform/>
|
|
|
239 |
</TransformGroup>
|
|
|
240 |
</View:PolemicView.RenderTransform>
|
|
|
241 |
</View:PolemicView>
|
|
0
|
242 |
|
|
|
243 |
</Grid>
|
|
|
244 |
</UserControl>
|