Sliverlight学习日志(陈立东)

当你停下脚步的时候,想想有很多人还在继续奔跑~!Sliverlight
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

SearchResultsControl

Posted on 2009-07-21 22:04  陈立东  阅读(174)  评论(0)    收藏  举报

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