Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: Modifying C1RichTextBoxToolbar

$
0
0

It looks like these links involve subclassing the toolbar and making adjustments in code. This would probably work, but I wanted to avoid setting the UI in code — that’s what XAML is for. I was hoping for something like what was described in "C1RichTextBoxToolbar Custom" in the SilverLight forum:
http://our.componentone.com/groups/topic/c1richtextboxtoolbar-custom/
which says:

"The way to get the current RichTextBoxToolbar template to start with is by using Expression Blend. Just select the RichTextBoxToolbar and then "Edit Template". It will write the full default template by you, and you can later remove what you don’t want."

The problem is that this isn’t working for me. I see the "Edit Template" menuitem, but when I select it, and do "Edit a copy…", I just get

        
    <Style x:Key="C1RichTextBoxToolbarStyle1" TargetType="{x:Type c1:C1RichTextBoxToolbar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type c1:C1RichTextBoxToolbar}"/>
                </Setter.Value>
            </Setter>
        </Style>

rather than "a full default template".

Maybe it’s just for Silverlight?


Viewing all articles
Browse latest Browse all 14170

Trending Articles