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:
Nhẫn phong thủy là gì? Phong thủy là một học thuyết trừu tượng và rất khó nắm bắt, theo quan niệm từ thánh sư cho rằng mọi khía cạnh trong cuộc sống điều ít hoặc nhiều can dự đến phong thủy từ xây...
Nhẫn phong thủy là cái gì? Cách...