Binding Problem with Fluent.RibbonTabControl

Apr 4, 2012 at 10:07 AM

I'm stuck with a very strange problem with the version of 30th march 2012.

I tried to add the ribbon to my application and it seems to work so far, but for every instance of Fluent:RibbonTabItem I get two error lines in debug output:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Fluent.RibbonTabControl', AncestorLevel='1''. BindingExpression:Path=IsMinimized; DataItem=null; target element is 'RibbonTabItem' (Name=''); target property is 'IsMinimized' (type 'Boolean')

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Fluent.RibbonTabControl', AncestorLevel='1''. BindingExpression:Path=IsDropDownOpen; DataItem=null; target element is 'RibbonTabItem' (Name=''); target property is 'IsOpen' (type 'Boolean')

I tried to minimize the problem to just a ribbon with only one empty Tab

    <DockPanel>
        <Fluent:Ribbon x:Name="ribbon" DockPanel.Dock="Top">
            <Fluent:RibbonTabItem>
                
            </Fluent:RibbonTabItem>
        </Fluent:Ribbon>
        <Label>xxx</Label>
    </DockPanel>

But the problem still exists.
So I created a new test application and did the same. Here I don't get these errors.
What could be the reason for these errors?