Hi
I have the following simple Objects (Tablist):
my xaml:
the result is attached, as you see the 3 Tabs were generated as expected, but the RibbonGroups are missing.
In the DesignView i get an Exception if i click in the line
Thanks in advance
unfortunately attaching the project is not allowed
I have the following simple Objects (Tablist):
class tabObject
{
public string Header { set; get; }
}
class tabsObjects { public string Header { set; get; } private List<tabObject> _tabs = new List<tabObject>(); public tabsObjects() { _tabs.Add(new tabObject { Header = "Tab1" }); _tabs.Add(new tabObject { Header = "Tab2" }); _tabs.Add(new tabObject { Header = "Tab3" }); } public List<tabObject> Tabs { get { return _tabs; } set { _tabs = value; } } }my xaml:
<Window x:Class="RibbonTest.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:code="clr-namespace:RibbonTest" Title="MainWindow" Height="350" Width="525"> <Window.DataContext> <code:tabsObjects/> </Window.DataContext> <Window.Resources> <DataTemplate DataType="{x:Type code:tabObject}"> <telerik:RadRibbonTab Header="{Binding Path=Header}"> <telerik:RadRibbonGroup Header="Group1"> </telerik:RadRibbonGroup> <telerik:RadRibbonGroup Header="Group2"> </telerik:RadRibbonGroup> <telerik:RadRibbonGroup Header="Group3"> </telerik:RadRibbonGroup> </telerik:RadRibbonTab> </DataTemplate> </Window.Resources> <Grid> <telerik:RadRibbonView VerticalAlignment="Top" ItemsSource="{Binding Tabs}"> </telerik:RadRibbonView> </Grid></Window>the result is attached, as you see the 3 Tabs were generated as expected, but the RibbonGroups are missing.
In the DesignView i get an Exception if i click in the line
<telerik:RadRibbonTab Header="{Binding Path=Header}"> or </telerik:RadRibbonTab> the Designer crashes with this Exception: ArgumentException: Property Items not found in the property collection
has anyone an idea whats missing or wrong?Thanks in advance
unfortunately attaching the project is not allowed