Mình đang làm một phần mềm đọc báo:
Bây giờ mình muốn viết sự kiện cho TextBlock "Xem thêm..." kia thì khi tap vào thì sẽ sổ ra thêm 3 4 item nữa.
Liệu có thể thực hiện điều đó không ? hay bắt buộc phải tạo ra 1 trang khác ?
Nếu có thể thì xin mọi ng giúp đỡ
Mã:
<!--Panorama item two-->
<phone:PanoramaItem>
<StackPanel>
<phone:LongListSelector Margin="0,-38,-22,2" ItemsSource="{Binding lstBao}" Name="lstBao">
<phone:LongListSelector.ListHeaderTemplate>
<DataTemplate>
<Grid Margin="12,0,0,38">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="danh sách báo"
Style="{StaticResource PanoramaItemHeaderTextStyle}"
Grid.Row="0" Foreground="White"/>
</Grid>
</DataTemplate>
</phone:LongListSelector.ListHeaderTemplate>
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="12,2,0,4" Height="105" Width="432" ManipulationStarted="lstBao_ManipulationStarted" ManipulationCompleted="lstBao_ManipulationCompleted" Tag="{Binding TenBao}">
<!--Replace rectangle with image-->
<Image Source="{Binding Icon}" Width="99" Height="99" />
<StackPanel Width="311" Margin="8,-7,0,0">
<TextBlock Text="{Binding TenBao}" TextWrapping="Wrap" Margin="10,0" Style="{StaticResource PhoneTextExtraLargeStyle}" FontSize="{StaticResource PhoneFontSizeLarge}" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding MotaBao}" TextWrapping="Wrap" Margin="10,-2,10,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="White"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
</phone:LongListSelector>
<TextBlock Text="xem thêm..." Margin="12,0,0,0" FontSize="36" Foreground="White"/>
</StackPanel>
</phone:PanoramaItem>
View more random threads:
Tuy nhiên, việc thi công và bảo dưỡng đường bê tông nhựa đòi hỏi sự chuyên nghiệp và kỹ thuật cao từ các nhà thầu và kỹ sư. Sự linh hoạt và độ bền cao của đường bê tông nhựa cũng giúp giảm thiểu chi...
Xây Dựng Đẳng Cấp: Cùng Đại Thanh,...