I have a "console emulation" as it is shown here: https://stackoverflow.com/a/14957478/6518526
There is no interactivity in my console, so it is really just a buffer that is being displayed.
So there is a ScrollViewer
containing an ItemsControl
, which contains TextBlocks
's. The ItemsControl
gets its data through a data-binding to an observable queue containing strings.
How can this setup be extended, so it is possible to select/copy text like in a console?
I have already tried to use a TextBox
instead of the TextBlock
, but that just gives me the possibility to select within each item, but not over several of the items at the same time.
I also found this solution here, which implements a way to populate Controls within a FlowDocument using data-bindings: https://msdn.microsoft.com/en-us/magazine/dd569761.aspx . But as it seems, also that approach won't give me selectability over several items.
So, I am little lost about which Control can be used in what way to achieve this.