开发者

Problem with showing flowdocument in wpf MVVM

开发者 https://www.devze.com 2023-02-21 15:19 出处:网络
i have a textbox, and i have this xaml in it : <FlowDocument xml:space=\"preserve\" xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"><Paragraph>Welk alternatief gebruik

i have a textbox, and i have this xaml in it :

<FlowDocument xml:space="preserve" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"><Paragraph>Welk alternatief gebruik is er met een EN poort 开发者_StackOverflow社区mogelijk ? <LineBreak />Flexibele inverter<LineBreak />Doorlaatfilter<LineBreak />Samensteller<LineBreak />Opteller<LineBreak /></Paragraph></FlowDocument>

now my question is simple, how do i show this nicely in a flowdocument, so how do i show this in my view, without all this xaml stuff (tags) in it.


If I understand your question correctly, all you have to do is put it in a RichTextBox:

<RichTextBox>
  <FlowDocument xml:space="preserve" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"><Paragraph>Welk alternatief gebruik is er met een EN poort mogelijk ? <LineBreak />Flexibele inverter<LineBreak />Doorlaatfilter<LineBreak />Samensteller<LineBreak />Opteller<LineBreak /></Paragraph></FlowDocument>
</RichTextBox> 
0

精彩评论

暂无评论...
验证码 换一张
取 消