I have a page based wpf application, where a user enters information and clicks on a "Next" button, and is brought to a new page, passing the information along. When the second page is reached, I want to dynamically add tab(s), group(s), and wrappanel(s), based on how many inputs they submitted. I am trying the following, but it is exceptioning out with the following error:
Layout measurement override of element 'Telerik.Windows.Controls.RibbonView.Primitives.RibbonGroupsPanel' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
Code:
RadOrderedWrapPanel checkpointwrap = new RadOrderedWrapPanel();
checkpointwrap.Name = "ckwrap";
RadRibbonGroup checkpointgroup = new RadRibbonGroup();
checkpointgroup.Name = "ckp_" + "2";
checkpointgroup.Items.Add(checkpointwrap);
checkpointgroup.Header = "GroupTest";
RadRibbonTab checkpointtab = new RadRibbonTab();
checkpointtab.Name = "CKP1";
checkpointtab.Items.Add(checkpointgroup);
this.Grid1.Children.Add(checkpointtab);
Layout measurement override of element 'Telerik.Windows.Controls.RibbonView.Primitives.RibbonGroupsPanel' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
Code:
RadOrderedWrapPanel checkpointwrap = new RadOrderedWrapPanel();
checkpointwrap.Name = "ckwrap";
RadRibbonGroup checkpointgroup = new RadRibbonGroup();
checkpointgroup.Name = "ckp_" + "2";
checkpointgroup.Items.Add(checkpointwrap);
checkpointgroup.Header = "GroupTest";
RadRibbonTab checkpointtab = new RadRibbonTab();
checkpointtab.Name = "CKP1";
checkpointtab.Items.Add(checkpointgroup);
this.Grid1.Children.Add(checkpointtab);