The type ToolBarAdv does not support direct content ?

Hi all,

I'm trying to add a toolbar to my application, so I proceed like this

<syncfusion:ToolBarAdv HorizontalAlignment="Stretch" Name="tl_text" VerticalAlignment="Stretch"
                                       GripperVisibility="Collapsed">
                    <Button Name="btn_bold" Style="{DynamicResource VEGA_ToolBarButtonStyle}" Command="syncfusion:RichTextBoxAdv.ToggleBold" CommandTarget="{Binding ElementName=tb_body}"
                            IsChecked="{Binding Path=rte.CurrentInlineStyle.FontWeight, Converter={StaticResource FontWeightToChecked}, Mode=TwoWay, ElementName=tb_body}" >
                        <Image Name="img_bold"/>
                    </Button>
</syncfusion:ToolBarAdv>

But on XAML, i got an error on my button, with the error "The type ToolBarAdv does not support direct content".

What I'm doing wrong ?

Thanks

2 Replies

CH Chris April 10, 2015 09:17 AM UTC

Ok, found it, it's because I was using 4.5.1 dll instead of 4.5.


SC Saranya CJ Syncfusion Team April 10, 2015 12:33 PM UTC

Hi Chris,

Thank you for your update. Please let us know if you require any other assistance on this.

Regards,
Saranya

Loader.
Up arrow icon