<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>