client/src/Iri.Modernisation.Controls/View/NavigationBar/ReferencesChutier.xaml
author Matthieu Totet
Mon, 04 Jan 2010 10:29:39 +0100
changeset 27 f292db96b050
parent 4 cf756528609e
child 30 644e3cd48034
permissions -rw-r--r--
Generalization of Book Structure

<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	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"
	mc:Ignorable="d"
	x:Class="Iri.Modernisation.Controls.View.ReferencesChutier"
     xmlns:Lang="clr-namespace:Iri.Modernisation.Lang;assembly=Iri.Modernisation.Lang"   
      xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions" 
    
>
<UserControl.Resources>
        <ResourceDictionary>
            <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
        </ResourceDictionary>
    </UserControl.Resources>
	<StackPanel x:Name="ChutierPanel">
		<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="TitleChutier" Height="16" Text="{Binding ReferencesChutierTitle, Source={StaticResource LangLabels}}" TextWrapping="Wrap" d:LayoutOverrides="VerticalMargin" Margin="0,0,8,0"/>
		<StackPanel x:Name="AnnotedPanel" Height="160" d:LayoutOverrides="Height, VerticalMargin">
		
			
				<TextBox x:Name="SearchAnnotedBox" KeyUp="SearchAnnotedBox_KeyUp"  Text="{Binding SearchWord, Mode=TwoWay}" TextWrapping="Wrap" Margin="8,0"/>
			<!--	<Button x:Name="searchButton" Margin="13,0,12,0" Content="Button" Width="51" Input:CommandService.Command="Search"/>-->
			

            <ListBox x:Name="AnnotedResultList" Height="136" ItemsSource="{Binding Annotations, Mode=TwoWay}" >
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Grid >
                            <ToolTipService.ToolTip>
                                <TextBlock Text="{Binding Contributer.UserName}"/>
                            </ToolTipService.ToolTip>
                            <TextBlock Text="{Binding Title}" Input:CommandService.Command="ClickAnnotation" Input:CommandService.CommandParameter="{Binding}" />
                        </Grid>
                    </DataTemplate>
                </ListBox.ItemTemplate>

            </ListBox>
        </StackPanel>
		
	</StackPanel>
</UserControl>