c# - ListView present in BlockUIContatiner not splitting up in pages in Flow Document when it is paginated -
i using blockuicontainer , displaying listview in it. when document paginated, list view not splitting in pages , instead moving new page. want list view displayed continously , splitting in pages when large.enter code here
<flowdocumentreader x:class="tmsss.trapper.modules.mailmerge.views.pdfcescheckview" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:resources="clr-namespace:tmsss.trapper.resources;assembly=tmsss.trapper.resources" xmlns:viewmodels="clr-namespace:tmsss.trapper.modules.mailmerge.viewmodels" mc:ignorable="d" d:designheight="300" d:designwidth="300"> <flowdocumentreader.datacontext> <viewmodels:pdfbundeswehrviewmodel/> </flowdocumentreader.datacontext> <flowdocument columngap="0" columnwidth="999999"> <flowdocument.resources> <style targettype="{x:type gridviewcolumnheader}" x:key="myheaderstyle"> <setter property="background" value="#cfddee" /> </style> <style targettype="tablecell" > <setter property="borderbrush" value="black" /> <setter property="borderthickness" value="0.5"/> <setter property="padding" value="2" /> </style> </flowdocument.resources> <blockuicontainer> <textblock text="{x:static resources:resources.finalreport}" horizontalalignment="center" textdecorations="underline" fontweight="bold" fontfamily="arial"></textblock> </blockuicontainer> <blockuicontainer> <textblock text="{x:static resources:resources.overviewcescheck}" horizontalalignment="left" textdecorations="underline" fontweight="bold" margin="0,20,0,0" fontfamily="arial"></textblock> </blockuicontainer> <blockuicontainer> <listview itemssource="{binding partsdata}" width="705" scrollviewer.horizontalscrollbarvisibility="disabled" margin="0,15,0,0" horizontalalignment="left" fontfamily="arial"> <listview.itemcontainerstyle> <style targettype="{x:type listviewitem}"> <setter property="borderbrush" value="lightgray"/> <setter property="borderthickness" value="0,0,0,1" /> <setter property="foreground" value="black" /> </style> </listview.itemcontainerstyle> <listview.view> <gridview columnheadercontainerstyle="{staticresource myheaderstyle}"> <gridviewcolumn header="{x:static resources:resources.no}" width="30" displaymemberbinding="{binding no}" /> <gridviewcolumn header="{x:static resources:resources.name}" width="130" displaymemberbinding="{binding name}" /> <gridviewcolumn header="{x:static resources:resources.number}" width="90" displaymemberbinding="{binding number}" /> <gridviewcolumn header="{x:static resources:resources.nsnwithoutcolon}" width="90" displaymemberbinding="{binding nsn}" /> <gridviewcolumn header="{x:static resources:resources.aql}" width="90" displaymemberbinding="{binding aql}" /> <gridviewcolumn header="{x:static resources:resources.ok}" width="90" displaymemberbinding="{binding ok}" /> <gridviewcolumn header="{x:static resources:resources.exchange}" width="90" displaymemberbinding="{binding exchange}" /> <gridviewcolumn header="{x:static resources:resources.deficient}" width="90" displaymemberbinding="{binding deficient}" /> </gridview> </listview.view> </listview> </blockuicontainer> <blockuicontainer> <stackpanel orientation="horizontal" horizontalalignment="left" margin="350,0,0,0"> <textblock text="{x:static resources:resources.totaldeficient}" fontfamily="arial" textdecorations="underline"></textblock> <textblock text="{binding totaldeficient}" fontfamily="arial"></textblock> </stackpanel> </blockuicontainer> </flowdocument> </flowdocumentreader>
Comments
Post a Comment