|ZYCWPF| 为什么我在书上看WPF在FlowDocument中可以放BlockUIContainer,但我实际不行
书上说:BlockUIContainer是用来临时放WPF控件的
但是我在实际测试时不行如:
<Window x:Class="_28_2_3_创建简单的流文档.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<FlowDocumentScrollViewer IsSelectionEnabled="False">
<!--设置是否可以选择-->
<FlowDocument>
<Section FontFamily="Palatino" Background="LightYellow">
<Paragraph>
<BlockUIContainer>
<Button x:Name="btnLogin" Content="登录"></Button>
</BlockUIContainer>
</Paragraph>
</Section>
</FlowDocument>
</FlowDocumentScrollViewer>
</Window>