InlineUIControl

Posted by zync on Stack Overflow See other posts from Stack Overflow or by zync
Published on 2010-04-29T14:24:44Z Indexed on 2010/04/29 14:27 UTC
Read the original article Hit count: 366

Filed under:
|

Hi.

I have a project in wich I must create a form editor (just like infopath) using wpf. For this I thought to use a RichTextBox and in there I would place InlineUIElements with the different controls (TextBox, ComboBox, etc.). The problem is that I can't change some properties associated with those controls. Here's some XAML:

<RichTextBox>
    <FlowDocument>
        <Paragraph>
            <InlineUIContainer>
                <TextBox Background="Red">Some Text</TextBox>
            </InlineUIContainer>
        </Paragraph>
    </FlowDocument>
</RichTextBox>

This displays a TextBox in a RichTextBox just like I wanted but it's not red. Some other properties work like width and height.

Why is this and how can I make it work?

Other question is: Am I approaching the problem (creating the form editor) right?

Thanks

© Stack Overflow or respective owner

Related posts about wpf

Related posts about richtextbox