client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProductionChapter.xaml
changeset 27 f292db96b050
parent 26 44a2dc869e28
child 38 bd33267300aa
--- a/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProductionChapter.xaml	Tue Dec 22 16:22:22 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProductionChapter.xaml	Mon Jan 04 10:29:39 2010 +0100
@@ -4,21 +4,27 @@
 	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 	mc:Ignorable="d"
+	
 	 xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
 	xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
 	 xmlns:Lang="clr-namespace:Iri.Modernisation.Lang;assembly=Iri.Modernisation.Lang"
-
-	x:Class="Iri.Modernisation.Controls.HeaderProductionChapter" d:DesignHeight="104">
-
-	<StackPanel x:Name="ChapterPanel_Modernisation" Width="176" RenderTransformOrigin="0.5,0.5">
-				<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel"  Text="Modernisation" TextWrapping="Wrap"/>
+xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
+	x:Class="Iri.Modernisation.Controls.View.HeaderProductionChapter" 
+	
+	d:DesignHeight="104"
+    >
+    <UserControl.Resources>
+    <Converter:BoolToVisibility x:Key="BoolToVisibility"></Converter:BoolToVisibility>
+    </UserControl.Resources>
+    <StackPanel x:Name="ChapterPanel_Modernisation" Width="176" RenderTransformOrigin="0.5,0.5">
+				<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel"  Text="{Binding Title}"  TextWrapping="Wrap"/>
 				<StackPanel x:Name="ChapterPanel" Height="82" Margin="8,0,19,0">
 					<Grid x:Name="EPanel" Height="27" HorizontalAlignment="Left" Width="149">
-					    <View:HeaderProductionPartControler x:Name="EditionController" Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" d:LayoutOverrides="VerticalMargin"/>
+					    <View:HeaderProductionPartControler HighLighted="{Binding HighLight}"  x:Name="EditionController" Active="{Binding IsActive}" d:LayoutOverrides="VerticalMargin"/>
 					</Grid>
 					<Grid x:Name="IPanel" Height="27" HorizontalAlignment="Left" Width="149">
 						
-						<View:HeaderProductionPartControler IsActive="{Binding IsChap01IndexingEnable}" x:Name="IndexController" Text="Indexation"/>
+						<View:HeaderProductionPartControler  HighLighted="{Binding HighLight}" Active="{Binding Editing}" x:Name="IndexController" Text="Indexation"/>
 						</Grid>
 					<Grid x:Name="EnPanel" Height="28" HorizontalAlignment="Left" Width="149" RenderTransformOrigin="0.5,0.5">
 						<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="EnLabel"  Text="Enrichissement" TextWrapping="Wrap" d:LayoutOverrides="HorizontalAlignment"/>