client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/CustomableVideoElement.xaml
--- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/CustomableVideoElement.xaml Thu Dec 03 16:05:43 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/CustomableVideoElement.xaml Thu Dec 03 16:05:57 2009 +0100
@@ -1,21 +1,26 @@
-<UserControl x:Class="Iri.Modernisation.Controls.View.CustomableVideoElement"
+<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" BorderBrush="Black" Width="{Binding Duration, Mode=OneTime}">
+ xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
+ 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" x:Class="Iri.Modernisation.Controls.View.CustomableVideoElement"
+ BorderBrush="Black" Width="{Binding Duration, Mode=OneTime}" mc:Ignorable="d">
+ <UserControl.Resources>
+ <Converter:PolemicTypeColorConverter x:Key="PolemicTypeColorConverter"/>
+ </UserControl.Resources>
<Grid x:Name="LayoutRoot">
<ToolTipService.ToolTip>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding BeginTrim}"/>
- <TextBlock Text="|- "></TextBlock>
- <TextBlock Text="{Binding DurationTimeSpan}"></TextBlock>
- <TextBlock Text="-| "></TextBlock>
+ <TextBlock Text="|- "/>
+ <TextBlock Text="{Binding DurationTimeSpan}"/>
+ <TextBlock Text="-| "/>
<TextBlock Text="{Binding EndTrim}"/>
</StackPanel>
</ToolTipService.ToolTip>
- <Rectangle Fill="#FFFF0909" Stroke="Black" StrokeThickness="0"/>
- <Rectangle Fill="Black" Stroke="Black" StrokeThickness="0" HorizontalAlignment="Left" Width="5" Cursor="SizeWE"/>
- <Rectangle Fill="Black" Stroke="Black" StrokeThickness="0" HorizontalAlignment="Right" Width="5" Cursor="SizeWE"/>
+ <Rectangle Fill="{Binding Chapter, Converter={StaticResource PolemicTypeColorConverter}, Mode=TwoWay}" Stroke="Black" StrokeThickness="0"/>
+ <Rectangle Fill="Black" Stroke="Black" StrokeThickness="0" HorizontalAlignment="Left" Width="2" Cursor="SizeWE" d:LayoutOverrides="HorizontalAlignment"/>
+ <Rectangle Fill="Black" Stroke="Black" StrokeThickness="0" HorizontalAlignment="Right" Width="2" Cursor="SizeWE" d:LayoutOverrides="HorizontalAlignment"/>
<Rectangle Fill="Black" Stroke="Black" StrokeThickness="0" Height="2" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="8"/>
<Rectangle Fill="Black" Stroke="Black" StrokeThickness="0" Height="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="8"/>
<Rectangle Fill="Black" Stroke="Black" StrokeThickness="0" Height="2" HorizontalAlignment="Right" VerticalAlignment="Top" Width="8"/>