Uno: TappedRoutedEventArgs.GetPosition throws a 'Specified method is not supported' exception in WASM

Created on 1 Nov 2019  路  1Comment  路  Source: unoplatform/uno

Current behavior

TappedRoutedEventArgs.GetPosition throws a 'Specified method is not supported' exception when a 'relativeTo' parameter is specified.

Expected behavior

The correct position is returned with no exception thrown.

How to reproduce it (as minimally and precisely as possible)

c# private void TappedEventHandler(object sender, TappedRoutedEventArgs args) { try { var position = args.GetPosition(args.OriginalSource as UIElement); coordinates.Text = $"Clicked: {position.X}, {position.Y}"; } catch (Exception e) { coordinates.Text = $"Exception while calling TappedRoutedEventArgs: {e.Message}"; } }

Environment

Package Version(s):

Uno.UI v 1.45.0
Uno.Wasm.Bootstrap v1.0.0

Affected platform(s):

  • [ ] iOS
  • [ ] Android
  • [*] WebAssembly
  • [ ] WebAssembly renderers for Xamarin.Forms
  • [ ] Windows
  • [ ] Build tasks
  • [ ] Solution Templates

Visual Studio:

  • [ ] 2017 (version: )
  • [*] 2019 (version: )
  • [ ] for Mac (version: )

Relevant plugins:

  • [ ] Resharper (version: )

Anything else we need to know?

A full working reproduction can be found in this repository: https://github.com/ibebbs/UnoIssues

kinbug triaguntriaged

Most helpful comment

Resolved by Uno.UI v2.0.512-dev.3670

>All comments

Resolved by Uno.UI v2.0.512-dev.3670

Was this page helpful?
0 / 5 - 0 ratings