Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Setting Container Position in WPF

$
0
0

Hi

I want to show a container in WPF application at a specified point. How can i do that ?

The window contains a Webbrowser control and i want to show a custom section ( may be a grid or Stackpanel with few buttons )  on the top of the webbrowser at some specific cordinates based on the position of selected text in webbrowser control.

My window structure is like

<Grid name="container">

<WebbRowser />

<stackpanel name="customactions" visibility="collapsed">

</Grid>

What i am doing is on selection change event of webbrowser control change visibility of customactions (Now its showing exactly on center of web browser ). BUt if i know the x,y cordinates value , how can i set the position of the custommenu ?


Thanks ***Share Knowledge to gain more***


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>