This question is locked. New answers and comments are not allowed.
Hi,
We have a critical issue in our application that causes an exception to be thrown saying "Layout cycle detected" and the crashing the application.
This seems to be consistently when:
-executing a specific series of actions
-fairly often (but not always) when resizing the browser window
I'm not entirely sure it's because of the Docking control, and it might be a specific xaml that causes the issue.
Unfortunately our application is quite massive but here what the xaml looks like (edited for simplicity).
This shows each control from the outermost to the inner most.
The main view :
The dashboard view:
And RControl contains something like this:
Given the critical nature of that issue, a prompt answer would be appreciated.
Thanks
We have a critical issue in our application that causes an exception to be thrown saying "Layout cycle detected" and the crashing the application.
This seems to be consistently when:
-executing a specific series of actions
-fairly often (but not always) when resizing the browser window
I'm not entirely sure it's because of the Docking control, and it might be a specific xaml that causes the issue.
Unfortunately our application is quite massive but here what the xaml looks like (edited for simplicity).
This shows each control from the outermost to the inner most.
The main view :
<telerik:RadDocking Margin="0" telerik:StyleManager.Theme="{Binding SelectedTheme}" QuickStart:ThemeAwareBackgroundBehavior.IsEnabled="False" AllowUnsafeMode="True"> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer telerik:StyleManager.Theme="{Binding SelectedTheme}"> <telerik:RadPaneGroup telerik:StyleManager.Theme="{Binding SelectedTheme}"> <telerik:RadPane x:Name="tabDashboard" Header="Dashboard" telerik:StyleManager.Theme="{Binding SelectedTheme}" CanUserClose="False" CanDockInDocumentHost="False" CanFloat="False" ContextMenuTemplate="{x:Null}"> <rb:DashboardView DataContext="{Binding DashboardVM}" /> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost></telerik:RadDocking>The dashboard view:
<UserControl x:Name="_dashView" ...
mc:Ignorable="d" d:DesignHeight="304" d:DesignWidth="575"> <Grid x:Name="_topGrid" Background="White"> <ContentPresenter Content="{Binding Path=ReportDashboard.SelectedPage}" Visibility="Visible"> <ContentPresenter.ContentTemplate> <DataTemplate> <telerik:ItemsControl ItemsSource="{Binding}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> <telerik:ItemsControl.ItemsPanel> <ItemsPanelTemplate> <view:DynamicGridLayout NumColumns="{Binding Path=Width, Mode=OneWay, FallbackValue=1}" NumRows="{Binding Path=Height, Mode=OneWay, FallbackValue=1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> </view:DynamicGridLayout> </ItemsPanelTemplate> </telerik:ItemsControl.ItemsPanel> <telerik:ItemsControl.ItemTemplate> <DataTemplate> <ContentPresenter DataContext="Binding ElementName=_topGrid, Path=DataContext"> <view:RControl x:Name="rcontrol" BorderThickness="5" BorderBrush="/> </ContentPresenter> </DataTemplate> </telerik:ItemsControl.ItemTemplate> </telerik:ItemsControl> </DataTemplate> </ContentPresenter.ContentTemplate> </ContentPresenter> </Grid></UserControl>And RControl contains something like this:
<telerik:ClipPanel> <telerik:RadChart x:Name="uc_TChart" Background="Transparent" UseDefaultLayout="False" ItemsSource="{Binding Path=Series, Mode=OneWay, Converter={StaticResource ResourceKey=cv_ToTelerikDataConverter}}" SeriesMappings="{Binding Path=Series, Mode=OneWay, Converter={StaticResource ResourceKey=cv_ToTelerikDefinitionConverter}}" Visibility="{Binding Path=IsChartVisible, Mode=OneWay, Converter={StaticResource ResourceKey=cv_BoolToCollapsedVisibilityConverter}}" DataBound="uc_TChart_DataBound" Loaded="uc_TChart_Loaded" Width="{Binding Path=ChartState.ActualWidth, Mode=OneWay}" Height="{Binding Path=ChartState.ActualHeight, Mode=OneWay}" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,5,0"> <Grid> .... </Grid> </telerik:RadChart> </telerik:ClipPanel>Given the critical nature of that issue, a prompt answer would be appreciated.
Thanks