How to work with coordinates in PCFs


This article discusses how to work with coordinates in PCFs (Power Apps Component Framework). The author explains that while it is not a common requirement, there are situations where knowing the coordinates of a PCF is necessary. They provide examples of calculating the bounding rectangle and finding the coordinates inside the PCF. The author also shares a use case where they needed to control the position of a Fluent UI 9 Dialog relative to a button in the PCF. They explain how to detect the coordinates of the anchor control and use them to position the Dialog. The article concludes by stating that while some parts were easy, others required more time and they hope that their notes can help others.


Article 8m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time