Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141050 | Nov 20,2018 02:30 PM UTC | Nov 21,2018 11:30 AM UTC | WPF | 3 |
![]() |
Tags: SfChart |
Protected Overrides Function ArrangeOverride(finalSize As Size) As Size
AddHandler AnnotationElement.MouseEnter, AddressOf MouseEnter
Return MyBase.ArrangeOverride(finalSize)
End Function
Private Sub MouseEnter(sender As Object, e As MouseEventArgs)
Console.WriteLine("OnMouseEnter")
'SET POSITION
Dim pt As Point = e.GetPosition(CType(MainWindow.gMain, UIElement))
MainWindow.AnnotationPopup.Placement = Primitives.PlacementMode.RelativePoint
..
MainWindow.AnnotationPopup.IsOpen = True
End Sub
Private Sub CustomEllipseAnnotation_MouseLeave(sender As Object, e As MouseEventArgs) Handles Me.MouseLeave
Console.WriteLine("CustomEllipseAnnotation_MouseLeave")
MainWindow.AnnotationPopup.sp.Children.Clear()
MainWindow.AnnotationPopup.IsOpen = False
End Sub |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.