System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
System.InvalidOperationException
An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.
at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnUnhandledException(Object sender, ViewUnhandledExceptionEventArgs e) at Microsoft.Windows.Design.Platform.SilverlightViewProducer.SilverlightContentHost.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.ZoomableViewPresenter.DesignerBackground.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Decorator.MeasureOverride(Size constraint) at Microsoft.Windows.Design.Interaction.DesignerView.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Interop.HwndSource.SetLayoutSize() at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at MS.Internal.DeferredHwndSource.ProcessQueue(Object sender, EventArgs e)
System.Windows.Markup.XamlParseException
[Line: 0 Position: 0]
at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh) at System.Windows.DependencyObject.SetValue(DependencyProperty property, DependencyObject doh) at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PrepareHeaderCellStyle() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 1197 at Telerik.Windows.Controls.GridView.GridViewHeaderCell.Prepare() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 1140 at Telerik.Windows.Controls.GridView.GridViewHeaderRow.PrepareCell(GridViewCellBase cellBase, GridViewColumn column) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewHeaderRow.cs:line 240 at Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(GridViewCellBase cell, GridViewColumn column) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 402 at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(GridViewColumn column, Boolean createIfNull) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 396 at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 334 at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 258 at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize) in c:\TB\101\WPF_Scrum\Release_SL\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 302 at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
Here is a part of my code:
<telerik:RadGridView x:Name="DGLoad" AutoGenerateColumns="False" IsReadOnly="True" Margin="8,60,8,48" MouseLeftButtonUp="DGLoad_MouseLeftButtonUp" LayoutUpdated="DGLoad_LayoutUpdated"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn x:Name="loadid" DataMemberBinding="{Binding LoadID}" Width="55" Header="Load ID"> <telerik:GridViewDataColumn.HeaderCellStyle> <Style TargetType="dataprimitives:DataGridColumnHeader"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Border BorderBrush="#FF0AA0FF" BorderThickness="0,0,1,0"> <StackPanel Orientation="Vertical"> <Grid> <TextBlock Text="{Binding Strings.orderID, Source={StaticResource res}}" Height="22" Margin="1,0,22,0" Padding="3, 3"/> <TextBlock Width="22" Text="▲▼" Height="22" VerticalAlignment="Center" HorizontalAlignment="Right" Padding="0, 2" Margin="0,0,2,0"/> </Grid> <TextBox x:Name="txtLoadID" Tag="LoadID" KeyUp="SearchHeader_Keyup" GotFocus="SearchHeader_GotFocus" BorderThickness="1,0,0,0" KeyDown="txtKeyDown"/> </StackPanel> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </telerik:GridViewDataColumn.HeaderCellStyle> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn x:Name="orderTypeID" DataMemberBinding="{Binding LoadOrderTypeID, Converter={StaticResource OrderTypeConverter}}" Header="Order Type" Width="100"> <telerik:GridViewDataColumn.HeaderCellStyle> <Style TargetType="dataprimitives:DataGridColumnHeader"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Border BorderBrush="#FF0AA0FF" BorderThickness="0,0,1,0"> <StackPanel Orientation="Vertical"> <Grid> <TextBlock Text="{Binding Strings.orderType, Source={StaticResource res}}" Height="22" Margin="1,0,22,0" Padding="3, 3"/> <TextBlock Width="22" Text="▲▼" Height="22" VerticalAlignment="Center" HorizontalAlignment="Right" Padding="0, 2" Margin="0,0,2,0"/> </Grid> <TextBlock/> </StackPanel> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </telerik:GridViewDataColumn.HeaderCellStyle> </telerik:GridViewDataColumn>
