<t:RadDocking x:Name="radDocking" HasDocumentHost="False" DragDropMode="Deferred"> <t:RadDocking.CompassStyle> <Style TargetType="t:Compass"> <Setter Property="IsCenterIndicatorVisible" Value="false" /> <Setter Property="IsLeftIndicatorVisible" Value="false" /> <Setter Property="IsRightIndicatorVisible" Value="false" /> </Style> </t:RadDocking.CompassStyle> <t:RadDocking.RootCompassStyle> <Style TargetType="t:RootCompass"> <Setter Property="IsTopIndicatorVisible" Value="false" /> <Setter Property="IsBottomIndicatorVisible" Value="false" /> </Style> </t:RadDocking.RootCompassStyle> <t:RadSplitContainer> <!--Left--> <t:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical" t:ProportionalStackPanel.RelativeSize="200,200"> <t:RadPaneGroup AllowDrop="False" t:ProportionalStackPanel.RelativeSize="200,100"> <t:RadPane PaneHeaderVisibility="Collapsed" CanFloat="False" CanUserClose="False" CanDockInDocumentHost="False" CanUserPin="False" ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Customer"/> </t:RadPaneGroup> <t:RadPaneGroup AllowDrop="False" t:ProportionalStackPanel.RelativeSize="200,300"> <t:RadPane PaneHeaderVisibility="Collapsed" CanFloat="False" CanUserClose="False" CanDockInDocumentHost="False" CanUserPin="False" ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Ticket" /> </t:RadPaneGroup> </t:RadSplitContainer> <!--Right--> <t:RadSplitContainer InitialPosition="DockedRight" Orientation="Vertical" t:ProportionalStackPanel.RelativeSize="50,200"> <t:RadPaneGroup> <t:RadPane Header="Boven" CanUserClose="False" CanUserPin="False" CanFloat="False" ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Number"> </t:RadPane> </t:RadPaneGroup> <t:RadPaneGroup> <t:RadPane Header="Onder" CanUserClose="False" CanUserPin="False" CanFloat="False" t:RadDocking.SerializationTag="Other" ContextMenuTemplate="{StaticResource PaneContextMenuTemplate}" /> </t:RadPaneGroup> </t:RadSplitContainer> </t:RadSplitContainer> <!--Bottom--> <t:RadSplitContainer InitialPosition="DockedBottom"> <t:RadPaneGroup Height="100"> <t:RadPane PaneHeaderVisibility="Collapsed" Header="Output" IsPinned="False" CanFloat="False" CanUserClose="False" CanUserPin="False" ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Bottom" /> </t:RadPaneGroup> </t:RadSplitContainer> </t:RadDocking><t:RadPaneGroup> <t:RadPane> <t:RadSplitContainer InitialPosition="DockedRight" Orientation="Vertical" t:ProportionalStackPanel.RelativeSize="50,200"> <t:RadPaneGroup> <t:RadPane Header="Boven" CanUserClose="False" CanUserPin="False" CanFloat="False" ContextMenuTemplate="{x:Null}" t:RadDocking.SerializationTag="Number"> </t:RadPane> </t:RadPaneGroup> <t:RadPaneGroup> <t:RadPane Header="Onder" CanUserClose="False" CanUserPin="False" CanFloat="False" t:RadDocking.SerializationTag="Other" ContextMenuTemplate="{StaticResource PaneContextMenuTemplate}" /> </t:RadPaneGroup> </t:RadSplitContainer> </t:RadPane> </t:RadPaneGroup>System.NullReferenceException was unhandled by user code HResult=-2147467261 Message=Object reference not set to an instance of an object. Source=Telerik.Windows.Controls.Docking StackTrace: bij Telerik.Windows.Controls.RadPaneGroup.IsSourceDockingCurrentDock(IDataObject draggedPayload) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:regel 1656 bij Telerik.Windows.Controls.RadPaneGroup.OnDragOver(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:regel 1564 bij Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragEventArgs.cs:regel 202 bij System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) bij System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) bij System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) bij System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) bij Telerik.Windows.DragDrop.IInputElementExtensions.RaiseEvent(DependencyObject d, RoutedEventArgs routedEventArgs) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DependencyObjectExtensions.cs:regel 82 bij Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:regel 1737 bij Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnOver(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:regel 1812 bij System.Windows.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) bij System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) bij System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) bij System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) bij System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) bij System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint) bij System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDragOver(Int32 dragDropKeyStates, Int64 point, Int32& effects) InnerException:Hello
We are using RadMap with ILayers as source in one of our InformationLayers. WMS requests (Web Map Services) returns an image witch is binded to the informationlayers source.
Between version 2012.2 and 2012.3 there is a difference. I can see a new event related to Multiscale image, MultiScaleImage.RaiseMotionFinishedEvent.AnonymousMethod. I don’t know what courses my problems, but if I uses version 2012.2 my program works, and there is no such event.
The error occurs while using MapZoomBar + and – navigation buttons.
I start with zoomlevel 18 viewing both MapProvider and the WMS image. Then I push + button in the MapZoomBar. This leads to an http request with an image result. My Image is loading perfectly in zoomlevel 19. When I push – button my MapProvider loads in zoomlevel 18, but there is no WMS image. When I again push + button in the MapZoomBar my image is not loaded anymore in zoomlevel 19. Map center, width and height are not changing.
If I use the mouse wheel and do the same thing as described, zoom in and out, everything works fine.
Is this fixed/changed in Q1 2013 ?
<Window x:Class="MainWindow" Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Loaded="Window_Loaded"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <telerik:RadChart Name="chart" telerik:StyleManager.Theme="Summer" MaxWidth="5000" MaxHeight="5000" FontFamily="Segoe UI" FontSize="10" Background="Transparent" PaletteBrushesRepeat="False"> <telerik:RadChart.DefaultView> <telerik:ChartDefaultView> <telerik:ChartDefaultView.ChartLegend> <telerik:ChartLegend Name="chLegend" Background="Transparent" UseAutoGeneratedItems="True" FontSize="9" IsHitTestVisible="False"/> </telerik:ChartDefaultView.ChartLegend> <telerik:ChartDefaultView.ChartArea> <telerik:ChartArea EnableAnimations="True" LegendName="chLegend"> <telerik:ChartArea.AxisX> <telerik:AxisX/> </telerik:ChartArea.AxisX> <telerik:ChartArea.AxisY> <telerik:AxisY/> </telerik:ChartArea.AxisY> <telerik:ChartArea.AnimationSettings> <telerik:AnimationSettings TotalSeriesAnimationDuration="00:00:00.600" /> </telerik:ChartArea.AnimationSettings> <telerik:ChartArea.DataSeries> <telerik:DataSeries LegendLabel="Product Sales"> <telerik:DataSeries.Definition> <telerik:BarSeriesDefinition/> </telerik:DataSeries.Definition> </telerik:DataSeries> </telerik:ChartArea.DataSeries> </telerik:ChartArea> </telerik:ChartDefaultView.ChartArea> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> </telerik:RadChart> <Button x:Name="btnSetZoom" Grid.Row="1" Padding="3" Content="Click to set zoom" HorizontalAlignment="Right" Click="btnSetZoom_Click"/> </Grid></Window>Imports Telerik.Windows.Controls.ChartingClass MainWindow Private Sub btnSetZoom_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Me.SetZoom() End Sub Private Sub Window_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs) Me.InitChart() Me.GenerateData() End Sub Private Sub InitChart() With Me.chart.DefaultView.ChartArea.AxisX .AutoRange = True .IsZeroBased = True End With With Me.chart.DefaultView.ChartArea.AxisX .AutoRange = True .IsZeroBased = True End With Dim zoomX As ZoomScrollSettings = chart.DefaultView.ChartArea.ZoomScrollSettingsX zoomX.ScrollMode = ScrollMode.ScrollAndZoom zoomX.RangeStart = 0 zoomX.RangeEnd = 1 Dim zoomY As ZoomScrollSettings = chart.DefaultView.ChartArea.ZoomScrollSettingsY zoomY.ScrollMode = ScrollMode.ScrollAndZoom zoomY.RangeStart = 0 zoomY.RangeEnd = 1 End Sub Private Sub GenerateData() Dim data As New List(Of DataPoint)() For Each i In Enumerable.Range(0, 20) Dim p = New DataPoint(i, i + 1.0) data.Add(p) Next Me.chart.DefaultView.ChartArea.DataSeries(0).AddRange(data) End Sub Private Sub SetZoom() Dim zoomX As ZoomScrollSettings = chart.DefaultView.ChartArea.ZoomScrollSettingsX zoomX.RangeStart = 0.2 zoomX.RangeEnd = 0.7 End SubEnd Class