Assign StyleDefinition for all document elemeents by default

1 posts, 0 answers
  1. vaitko
    vaitko avatar
    11 posts
    Member since:
    Mar 2010

    Posted 06 May 2013 Link to this post

    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?
Back to Top