client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml
changeset 27 f292db96b050
parent 24 c031f1132dde
child 38 bd33267300aa
--- a/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml	Tue Dec 22 16:22:22 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml	Mon Jan 04 10:29:39 2010 +0100
@@ -10,7 +10,15 @@
 	mc:Ignorable="d"
 	x:Class="Iri.Modernisation.Controls.View.HeaderProduction" d:DesignHeight="216" Width="952">
 <UserControl.Resources>
- <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
+<ResourceDictionary>
+<ResourceDictionary.MergedDictionaries>
+<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_AnnotationMaker.xaml"/>
+    			<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_CommonTemplate.xaml"/>
+ 
+    		</ResourceDictionary.MergedDictionaries>
+			 <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
+			</ResourceDictionary>
+
       
     </UserControl.Resources>
 	<Grid x:Name="HeaderProductionPanel">
@@ -20,73 +28,13 @@
 			<Button x:Name="HeaderProductionPublishButton" Input:CommandService.Command="PublishClick" IsEnabled="{Binding IsVideoBookComplete}" Width="75" Content="Publier"/>
 		</StackPanel>
 		<StackPanel x:Name="ChapterStatementPanel" Orientation="Horizontal" Height="111" VerticalAlignment="Top" HorizontalAlignment="Right" Width="708">
-			<StackPanel x:Name="ChapterPanel_Modernisation" Width="176" RenderTransformOrigin="0.5,0.5">
-				<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel"  Text="Modernisation" TextWrapping="Wrap"/>
-				<StackPanel x:Name="Chapter01Panel" Height="82" Margin="8,0,19,0">
-					<Grid x:Name="C01EPanel" Height="27" HorizontalAlignment="Left" Width="149">
-					    <View:HeaderProductionPartControler x:Name="ModernisationEditionController" Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" d:LayoutOverrides="VerticalMargin"/>
-					</Grid>
-					<Grid x:Name="C01IPanel" Height="27" HorizontalAlignment="Left" Width="149">
-						
-						<View:HeaderProductionPartControler IsActive="{Binding IsChap01IndexingEnable}" x:Name="ModernisationIndexController" Text="Indexation"/>
-						</Grid>
-					<Grid x:Name="C01EnPanel" Height="28" HorizontalAlignment="Left" Width="149" RenderTransformOrigin="0.5,0.5">
-						<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C01EnLabel"  Text="Enrichissement" TextWrapping="Wrap" d:LayoutOverrides="HorizontalAlignment"/>
-					</Grid>
-				</StackPanel>
-			</StackPanel>
-			<StackPanel x:Name="ChapterPanel_Modernité" Width="182" RenderTransformOrigin="0.5,0.5">
-				<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel1"  TextWrapping="Wrap"><Run Text="Moderni"/><Run Text="té"/></TextBlock>
-				<StackPanel x:Name="Chapter02Panel" Height="82" Margin="8,0">
-					<Grid x:Name="C02EPanel" Height="27" HorizontalAlignment="Left" Width="166">
-						<View:HeaderProductionPartControler Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" x:Name="ModerniteEditionController" ></View:HeaderProductionPartControler>
-					</Grid>
-					<Grid x:Name="C02IPanel" Height="27" HorizontalAlignment="Left" Width="166">
-						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C02ILabel"  Text="Indexation" TextWrapping="Wrap" Margin="0,0,82,0"/>
-						<Button Input:CommandService.Command="Chap02IndexingOkClick"  x:Name="C02IButton" BorderThickness="1"  Width="45" Content="Ok" HorizontalAlignment="Right" Margin="0,0,30,0" IsEnabled="{Binding IsChap02IndexingEnable}"/>-->
-					<View:HeaderProductionPartControler x:Name="ModerniteIndexController" ></View:HeaderProductionPartControler>
-					</Grid>
-					<Grid x:Name="C02EnPanel" Height="28" HorizontalAlignment="Left" Width="166">
-						<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C02EnLabel"  Text="Enrichissement" TextWrapping="Wrap"/>
-					</Grid>
-				</StackPanel>
-			</StackPanel>
-			<StackPanel x:Name="ChapterPanel_PostModernité" RenderTransformOrigin="0.5,0.5" Width="189">
-				<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel2"  Text="Post-Modernité" TextWrapping="Wrap"/>
-				<StackPanel x:Name="Chapter03Panel" Height="82" Margin="8,0">
-					<Grid x:Name="C03EPanel" Height="27" HorizontalAlignment="Left" Width="173">
-						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C03ELabel"  Text="Edition" TextWrapping="Wrap" Margin="0,0,89,0"/>
-						<Button x:Name="C03EButton" BorderThickness="1"  Width="43" Input:CommandService.Command="Chap03EditingOkClick"  Content="Ok" HorizontalAlignment="Right" Margin="0,0,39,0" IsEnabled="{Binding IsChap03EditingEnable}"/>-->
-						<View:HeaderProductionPartControler Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" x:Name="PostModerniteEditionController"></View:HeaderProductionPartControler>
-					</Grid>
-					<Grid x:Name="C03IPanel" Height="27" HorizontalAlignment="Left" Width="173">
-						<!--<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="C03ILabel"  Text="Indexation" TextWrapping="Wrap" Margin="0,0,89,0"/>
-						<Button Input:CommandService.Command="Chap03IndexingOkClick"  x:Name="C03IButton" BorderThickness="1"  Width="43" Content="Ok" HorizontalAlignment="Right" Margin="0,0,39,0" IsEnabled="{Binding IsChap03IndexingEnable}"/>-->
-						<View:HeaderProductionPartControler x:Name="PostModerniteIndexController"></View:HeaderProductionPartControler>
-					</Grid>
-					<Grid x:Name="C03EnPanel" Height="28" HorizontalAlignment="Left" Width="173">
-						<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="C03EnLabel"  Text="Enrichissement" TextWrapping="Wrap" Margin="0,0,89,0"/>
-					</Grid>
-				</StackPanel>
-			</StackPanel>
-			<StackPanel x:Name="ChapterPanel_Ouverture" Width="181" RenderTransformOrigin="0.5,0.5">
-				<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel3"  Text="Ouverture" TextWrapping="Wrap"/>
-				<StackPanel x:Name="Chapter04Panel" Height="82" Margin="8,0">
-					<Grid x:Name="C04EPanel" Height="27" HorizontalAlignment="Left" Width="165">
-						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C04ELabel"  Text="Edition" TextWrapping="Wrap" Margin="0,0,81,0"/>
-						<Button x:Name="C04EButton" BorderThickness="1" Input:CommandService.Command="Chap04EditingOkClick"  Width="43" Content="Ok" HorizontalAlignment="Right" Margin="0,0,31,0" IsEnabled="{Binding IsChap04EditingEnable}"/>-->
-						<View:HeaderProductionPartControler Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" x:Name="OuvertureEditionController"></View:HeaderProductionPartControler>
-					</Grid>
-					<Grid x:Name="C04IPanel" Height="27" HorizontalAlignment="Left" Width="165">
-						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C04ILabel"  Text="Indexation" TextWrapping="Wrap" Margin="0,0,81,0"/>
-						<Button Input:CommandService.Command="Chap04IndexingOkClick"  x:Name="C04IButton" BorderThickness="1"  Width="43" Content="Ok" HorizontalAlignment="Right" Margin="0,0,31,0" IsEnabled="{Binding IsChap04IndexingEnable}"/>-->
-						<View:HeaderProductionPartControler x:Name="OuvertureIndexController"></View:HeaderProductionPartControler>
-					</Grid>
-					<Grid x:Name="C04EnPanel" Height="28" HorizontalAlignment="Left" Width="165">
-						<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C04EnLabel"  Text="Enrichissement" TextWrapping="Wrap" Margin="0,0,81,0"/>
-					</Grid>
-				</StackPanel>
-			</StackPanel>
+			<ListBox x:Name="listBox" Width="708" Style="{StaticResource HorizontalListBox}" ItemsSource="{Binding ProductionChapters}" SelectedItem="{Binding SelectedChapter,Mode=TwoWay}">
+			<ListBox.ItemTemplate>
+				<DataTemplate>
+					<View:HeaderProductionChapter />
+				</DataTemplate>
+			</ListBox.ItemTemplate>
+			</ListBox>
 		</StackPanel>
 		<TextBlock  x:Name="InstructionText"  Text="{Binding Instruction, Mode=OneWay}" TextWrapping="Wrap" FontSize="9.333" HorizontalAlignment="Left" Margin="0,40,0,0" Width="240" Foreground="White"/>
 	</Grid>