好贷网好贷款

Silverlight Reporting(一)

发布时间:2016-12-5 2:25:46 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"Silverlight Reporting(一)",主要涉及到Silverlight Reporting(一)方面的内容,对于Silverlight Reporting(一)感兴趣的同学可以参考一下。

<reporting:Report x:Name="Report"> <reporting:Report.Resources> <Style x:Key="HeaderText" TargetType="TextBlock"> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="TextAlignment" Value="Left" /> <Setter Property="HorizontalAlignment" Value="Stretch" /> </Style> </reporting:Report.Resources> <reporting:Report.PageHeaderTemplate> <DataTemplate> <Grid Margin="1 1 1 20"> <Rectangle Stroke="Black" /> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock Text="{Binding Title}" Grid.Row="0" FontSize="16" FontWeight="Bold" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top" /> <TextBlock Text="{Binding CurrentPageNumber, StringFormat='页数 {0}'}" Grid.Row="0" Margin="5" HorizontalAlignment="Right" VerticalAlignment="Top" /> <Grid Grid.Row="1" HorizontalAlignment="Stretch" Margin="4 0 0 4"> <Grid.ColumnDefinitions> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Style="{StaticResource HeaderText}" TextAlignment="Center" Text="SQRLX" /> <TextBlock Grid.Column="1" Style="{StaticResource HeaderText}" TextAlignment="Center" Text="TJFS" /> <TextBlock Grid.Column="2" Style="{StaticResource HeaderText}" TextAlignment="Center" Text="BLZT" /> <TextBlock Grid.Column="3" Style="{StaticResource HeaderText}" TextAlignment="Center" Text="SLSXBH" /> <TextBlock Grid.Column="4" Style="{StaticResource HeaderText}" TextAlignment="Center" Text="REGIONCODE" /> </Grid> </Grid> </Grid> </DataTemplate> </reporting:Report.PageHeaderTemplate> <reporting:Report.ItemTemplate> <DataTemplate> <Grid HorizontalAlignment="Stretch" Margin="5 0 0 20"> <Grid.ColumnDefinitions> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> </Grid.ColumnDefinitions> <StackPanel Orientation="Horizontal"> <TextBlock Grid.Column="0" Text="{Binding SQRLX}" TextAlignment="Center"/> <TextBlock Grid.Column="1" Text="{Binding TJFS}" TextAlignment="Center"/> <TextBlock Grid.Column="2" Text="{Binding BLZT}" TextAlignment="Center" /> <TextBlock Grid.Column="3" Text="{Binding SLSXBH}" TextAlignment="Center"/> <TextBlock Grid.Column="4" Text="{Binding REGIONCODE}" TextAlignment="Center"/> </StackPanel> </Grid> </DataTemplate> </reporting:Report.ItemTemplate> <reporting:Report.PageFooterTemplate> <DataTemplate> <Grid Margin="1 20 1 1"> <Rectangle Stroke="Black" /> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5"> <TextBlock Text="{Binding CurrentPageNumber, StringFormat='第 {0} 页 '}" /> <TextBlock Text="{Binding TotalPageCount, StringFormat=' 共 {0}'}" /> </StackPanel> </Grid> </DataTemplate> </reporting:Report.PageFooterTemplate> <reporting:Report.ReportFooterTemplate> <DataTemplate> <Grid Margin="1 20 1 1"> <Rectangle Stroke="Black" /> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> <ColumnDefinition Width="150" /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="1" Text="{Binding ProductsCount, StringFormat='{}{0} products'}" TextAlignment="Left" /> <TextBlock Grid.Column="2" Text="{Binding TotalPrice, StringFormat='{}{0:C}'}" TextAlignment="Right" /> </Grid> </Grid> </DataTemplate> </reporting:Report.ReportFooterTemplate> </reporting:Report>

上一篇:注册asp.net 4.0 到iis
下一篇:DataTable转List

相关文章

相关评论