This is a migrated thread and some comments may be shown as answers.

WPF Cant Click on Ellipse VisualizationLayer

1 Answer 39 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 06 Mar 2019, 09:01 AM

Hello

i have a radmap in WPF have VisualizationLayer.I can Click on Ellipse only if i change zoom.

I want to click to ellipse after  running program without change zoom.Can i do it?

 

Behind code:

asd.SelectionChanged += VisualizationLayer_SelectionChanged;

 

Xaml:

 <telerik:VisualizationLayer  x:Name="asd" ItemSelectionMode="MouseClick" VirtualizationSource="{Binding}"  Loaded="Znaki_Loaded" >
                <telerik:VisualizationLayer.ItemTemplate>
                    <DataTemplate>
                            <telerik:Pinpoint  Width="15" Height="15" BorderBrush="Black" Background="White"  Tag="{Binding Name}" MouseLeftButtonDown="Ellipse_MouseLeftButtonDown"  telerik:MapLayer.Location="{Binding Location}">
                            <telerik:MapLayer.HotSpot>
                                <telerik:HotSpot X="0.5" Y="0.5" />
                            </telerik:MapLayer.HotSpot>
                            <ToolTipService.ToolTip>
                                    <ToolTip Content="{Binding Name}"/>
                                </ToolTipService.ToolTip>
                            </telerik:Pinpoint>
                    </DataTemplate>
                </telerik:VisualizationLayer.ItemTemplate>
                <telerik:VisualizationLayer.Reader>
                    <telerik:AsyncSqlGeospatialDataReader x:Name="asyncSqlGeospatialDataReaderZnaki"                                                            
                                                  GeospatialPropertyName="Geometry" 
                                                  ToolTipFormat="Name" />
                </telerik:VisualizationLayer.Reader>
              
            </telerik:VisualizationLayer>

 

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 08 Mar 2019, 01:27 PM
Hello Sebastian,

Thank you for the provided code snippet.

Looking at this code snippet I wasn't able to find something suspicious that could prevent the item to be clicked. I have double check this on my side and MouseLeftButtonDown event is called as expected when I click on a circle. May I ask you to elaborate more on your application setup? This way I could try to mimic your implementation on my side to reproduce this behavior and get to the bottom of this.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Map
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or