title: How to get click position from event in Avalonia.FuncUI
body: <p>I'm trying to figure out how I can access the pointer position of a mouse click from the event click.
  I've came up with something like</p>
  
  <pre><code>[...]
      type State = { coords: Point list }
  
      type Msg = Click of Point
  
      let update (msg: Msg) (state: State) : State =
          match msg with
          | Click p -&gt; { state with coords = p::state.coords }
  
  
      let view (state: State) dispatch =
          Canvas.create [
               Canvas.onPointerPressed (fun event -&gt; event.GetPosition ??? |&gt; Click |&gt; dispatch)
           ]
  [...]
  </code></pre>
  
  <p>But that would require a handle to the control in place of <em>???</em>, to which i have no access.
  Is there another way? Or a way the get a handle to the control?</p>
  
  <p>Probably I'm missing something.</p>