This is a migrated thread and some comments may be shown as answers.

Assign StyleDefinition for all document elemeents by default

0 Answers 38 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
vaitko
Top achievements
Rank 1
vaitko asked on 06 May 2013, 12:18 PM
Hello,
i've added several style definintions into my document StyleRepository. One of these style defnitions is default (styleDefinition.IsDefault = true;) and i can see that this style is applied for new spans which are created when user types in radrichtextbox smth. But this style is not applied to spans explicitly, this happens only with RadRichTextBox.ChangeStyleName("MyDefaultStyleName"). Is it possible that the style definition is applied for all document elements explicitly:

<t:Section>
<t:Paragraph>
<t:Span StyleName="MyDefaultStyleName" Text="Lorem Ipsum" />
</t:Paragraph>
</t:Section>


 by default?

No answers yet. Maybe you can help?

Tags
RichTextBox
Asked by
vaitko
Top achievements
Rank 1
Share this question
or