<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:LiveSearch="clr-namespace:LiveSearch"
x:Class="LiveSearch.SearchResultsControl"
x:Name="UserControl"
xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
>
<Grid x:Name="LayoutRoot">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListBox Margin="8,8,8,8" IsSynchronizedWithCurrentItem="True" Background="{x:Null}" BorderBrush="{x:Null}" ItemsSource="{Binding Path=ResponseList}" ItemContainerStyle="{Binding Path=SearchListItemContainerStyle, ElementName=UserControl, Mode=Default}" Style="{Binding Path=SearchListStyle, ElementName=UserControl, Mode=Default}"/>
<LiveSearch:PagingControl HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" TotalResults="{Binding Path=TotalResults}" CurrentPage="{Binding Path=CurrentPage, Mode=TwoWay}" ResultsPerPage="{Binding Path=ResultsPerPage}" PageCount="{Binding Path=PageCount}" />
<Grid x:Name="SearchingControlHost" Grid.RowSpan="2" Panel.ZIndex="100" DataContextChanged="SearchingControlHost_DataContextChanged"/>
</Grid>
</UserControl>
浙公网安备 33010602011771号