question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage of Microsoft.UI.Input.Experimental.ExpPointerPoint in LiveChartsCore.SkiaSharpView.WinUI.CartesianChart

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
webhaikalcommented, Dec 4, 2021

Right now, the way to fix seems to be building the libraries from the repo and reference it

0reactions
webhaikalcommented, Dec 4, 2021

Alright thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found