c# - Creating a selectable text content in WPF -


i need create report page wpf project, content has generated dynamically. need bind content view model. implemented:

<scrollviewer horizontalscrollbarvisibility="auto" padding="5">             <itemscontrol itemssource="{binding path=mylistcategorywise}">                 <itemscontrol.itemtemplate>                     <datatemplate>                         <stackpanel orientation="vertical">                             <textblock text="{binding path=key}" fontsize="15" fontweight="bold" />                             <itemscontrol itemssource="{binding path=value}">                                 <itemscontrol.itemtemplate>                                     <datatemplate>                                         <grid>                                             <grid.columndefinitions>                                                 <columndefinition width="50" />                                                 <columndefinition />                                                 <columndefinition />                                             </grid.columndefinitions>                                             <textblock grid.column="1" text="{binding path=itemdescription}" verticalalignment="center" />                                             <textblock grid.column="2" isreadonly="true" width="200" verticalalignment="center" text="{binding path=itemcountstring, mode=oneway}"/>                                         </grid>                                     </datatemplate>                                 </itemscontrol.itemtemplate>                             </itemscontrol>                         </stackpanel>                     </datatemplate>                 </itemscontrol.itemtemplate>             </itemscontrol>         </scrollviewer> 

so creating form required text in proper format want, problem is not having select content support. (select , copy etc)

so looking putting whole content in single multi line textbox (which have select, copy etc support). generating string in viewmodel list bound here. again can't show formatted text in case (like of content show bold)

what best control show kind of report in wpf.

what best control show kind of report in wpf.

have considered documentviewer , writing report file. way create report crystal reports. has report creator make report, , can things want once it's generated in crystal viewer.

i best ways show (simplest) report in wpf.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -