
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>
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>