SL4(RC) RichTextBox and Access Violation

update: looks like this has been fixed and will work fine in  RTW

There is  a  post in silverlight forums talking about listitem in RichTextBox and editing them.

I tried this

 <RichTextBox IsReadOnly=”True” >
            <Paragraph>
                <Run Text=”hello, this is a listbox”/>
                <LineBreak/>
                <InlineUIContainer>
                    <ItemsControl Margin=”10,0,0,0″>
                        <ListBoxItem >
                            <TextBox Text=”1. Item 1″/>
                        </ListBoxItem>
                        <ListBoxItem >
                            <TextBox Text=”2. Item 2″/>
                        </ListBoxItem>
                    </ItemsControl>
                </InlineUIContainer>
            </Paragraph>
        </RichTextBox>

As soon as I started editing the TextBox, got this error. looks like bug to me

Advertisements

2 thoughts on “SL4(RC) RichTextBox and Access Violation

  1. Lee,

    I checked with the RichTextBox folks internally and they report that this problem no longer happens on recent builds. So the scenario should work fine on Silverlight 4 RTW.

    Hope that helps!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s