For example if i have code like the following both Buttons are disabled:
<RichTextBox>
<FlowDocument>
<BlockUIContainer>
<Button Content="!"/>
</BlockUIContainer>
<Paragraph>
<InlineUIContainer>
<Button Content="!"/>
</InlineUIContainer>
</Paragraph>
</FlowDocument>
</RichTextBox>
I have no idea why this is the case or what i can do to prevent this, obviously disabled buttons are not very useful so any help to resolve this would be appreciated.
Edit: It turns out that the FlowDocument gets disabled for some reason, however i have not found a way to reenable it yet, since it changes back to IsEnabled="False"
immediately...