Ribbon Binding

Ribbon for WPF Forum

Posted 16 years ago by Helene
Version: 3.0.0410
Avatar
I would like to bind the ribbon directly to an xml file. I am not sure what the best way is, and in the meantime I am trying to bind to a group inside a ribbon tab
I see that Ribbon, Tabs and Tab do not support ItemsSource, but Group does - however when I setup binding for Group, the lone button in my xml file does not display.
Thanks for any pointers about this.

Here is the simple test xml file:
<?xml version="1.0" encoding="utf-8"?>
<test2 xmlns:actiproRibbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon">
<Group>
<actiproRibbon:Button Label="Customer home" Name="CustomerHome">
</actiproRibbon:Button>
</Group>

</test2>

Here is the xaml code under the ribbon tabs:

<actiproRibbon:Tab x:Name="Home" Label="Home" >
<actiproRibbon:Group Label="Jump" ItemsSource="{Binding Source={StaticResource test2}, XPath=\test2\Group}" >

</actiproRibbon:Group>

</actiproRibbon:Tab>

and xaml code for dataprovider:
<actiproRibbon:Ribbon.Resources>
<XmlDataProvider x:Key="test2" Source="Resources\test2.xml" />

</actiproRibbon:Ribbon.Resources>

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Helene,

Could you wrap this up in a tiny project that we can debug to see what is happening? Please email it to our support address. Thanks!


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.