This question is locked. New answers and comments are not allowed.
Initial data:
- Telerik Silverlight 2011.2 920
- OOB mode
We're using the HtmlPlaceholder in a item's data template in a ItemsControl.
The code:
When screen is loaded It throws an exception:
System.InvalidOperationException: MeasureOverride of element 'Telerik.Windows.Controls.RadHtmlPlaceholder' should not return PositiveInfinity or NaN as its DesiredSize.
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
Any hints? Can RadHtmlPlaceholder be used in a DataTemplate?
Thanks
- Telerik Silverlight 2011.2 920
- OOB mode
We're using the HtmlPlaceholder in a item's data template in a ItemsControl.
The code:
<ItemsControl x:Name="News" Foreground="White" Margin="0,-3,0,3" Grid.RowSpan="2"> <ItemsControl.ItemTemplate> <DataTemplate> <Grid Margin="0 0 0 10"> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <TextBlock Text="{Binding Title}" FontSize="14" FontWeight="Bold" TextTrimming="WordEllipsis" /> <Controls:RadHtmlPlaceholder Grid.Row="1" HtmlSource="{Binding Description}" RespectSilverlightLayoutMeasure="True" /> </Grid> </DataTemplate> </ItemsControl.ItemTemplate> <ItemsControl.Template> <ControlTemplate> <ScrollViewer VerticalScrollBarVisibility="Auto" BorderThickness="0"> <ItemsPresenter /> </ScrollViewer> </ControlTemplate> </ItemsControl.Template> </ItemsControl> When screen is loaded It throws an exception:
System.InvalidOperationException: MeasureOverride of element 'Telerik.Windows.Controls.RadHtmlPlaceholder' should not return PositiveInfinity or NaN as its DesiredSize.
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
Any hints? Can RadHtmlPlaceholder be used in a DataTemplate?
Thanks