WPF Cant Click on Ellipse VisualizationLayer

2 posts, 0 answers
  1. Sebastian
    Sebastian avatar
    9 posts
    Member since:
    Feb 2014

    Posted 06 Mar Link to this post

    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>

     

  2. Dinko
    Admin
    Dinko avatar
    899 posts

    Posted 08 Mar Link to this post

    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.
Back to Top