Usage of Microsoft.UI.Input.Experimental.ExpPointerPoint in LiveChartsCore.SkiaSharpView.WinUI.CartesianChart
See original GitHub issueDescribe the bug Currently using version 2.0.0-beta.80 and encountering this weird error as what the title says. Pinpointed it to LiveChartsCore.SkiaSharpView.WinUI.CartesianChart class. Not sure how to fix as I couldn’t find any reference to it anywhere in the source.
Specifically when debugging, it shows to 3 methods in the class:
private void OnPointerReleased(object sender, PointerRoutedEventArgs e)
{
ExpPointerPoint currentPoint = e.GetCurrentPoint((UIElement)this);
_core?.InvokePointerUp(new LvcPoint((float)currentPoint.get_Position().X, (float)currentPoint.get_Position().Y));
ReleasePointerCapture(e.Pointer);
}
private void OnPointerPressed(object sender, PointerRoutedEventArgs e)
{
CapturePointer(e.Pointer);
ExpPointerPoint currentPoint = e.GetCurrentPoint((UIElement)this);
_core?.InvokePointerDown(new LvcPoint((float)currentPoint.get_Position().X, (float)currentPoint.get_Position().Y));
}
private void OnWheelChanged(object sender, PointerRoutedEventArgs e)
{
if (_core == null)
{
throw new Exception("core not found");
}
CartesianChart<SkiaSharpDrawingContext> cartesianChart = (CartesianChart<SkiaSharpDrawingContext>)_core;
ExpPointerPoint currentPoint = e.GetCurrentPoint((UIElement)this);
cartesianChart.Zoom(new LvcPoint((float)currentPoint.get_Position().X, (float)currentPoint.get_Position().Y), (currentPoint.get_Properties().get_MouseWheelDelta() <= 0) ? ZoomDirection.ZoomOut : ZoomDirection.ZoomIn);
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
ExpPointerPoint Class (Microsoft.UI.Input.Experimental)
Learn more about the Microsoft.UI.Input.Experimental.ExpPointerPoint in the Microsoft.UI.Input.Experimental namespace.
Read more >Microsoft.UI.Input.Experimental Namespace
Explore all classes and interfaces of the Microsoft.UI.Input.Experimental namespace.
Read more >Breaking changes in the Windows App SDK
It replaces Microsoft.UI.Input.Experimental.ExpPointerPoint. PointerPoint now references Microsoft.UI.Input enums and structs instead of Windows ...
Read more >ExpPointerPoint.Position Property - Windows
Learn more about the Microsoft.UI.Input.Experimental.ExpPointerPoint.Position in the Microsoft.UI.Input.Experimental namespace.
Read more >Question: How to convert ExpPointerPoint to PointerPoint ...
Hello, I see that the WinUI3 Preview 3 introduced the following changes: the return type of the Microsoft.UI.Xaml.Input.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Right now, the way to fix seems to be building the libraries from the repo and reference it
Alright thanks