0

I want to create a popup in UWP,

  1. It can be clicked anywhere from a canvas
  2. It should be with a triangle pointer
  3. The main popup can be moved dynamically but pointer should always point in the clicked point

Similar to this image, enter image description here

I have tried with Flyout and Stackpanel as the content of flyout. And in stack panel I have added a textbox and polygon as triangle. But I could not dynamically move the flyout. Also, it gives a transparent background behind the total control (flyout and stackpanel) which I could not remove. Any help will be appreciated.

3
  • You can't do anything about the "bounding box"; you just have to account for it in your hit testing and transforms. A UserControl can look and act like a Flyout and be dragged around; and have transparent regions. Commented Mar 21 at 21:04
  • Can you tell me how can make such user control? Commented Mar 22 at 4:43
  • You need to create the layout by yourself. For example, put a canvas in the UserControl and draw a triangle pointer border. Also, you will need to handle the drag event to change its position. Commented Mar 24 at 6:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.