开发者

WPF ContextMenu with TextBox and Button

开发者 https://www.devze.com 2023-02-25 08:34 出处:网络
On MouseLeftButtonDown of an Im开发者_JAVA百科age, I want to display a ContextMenu that has a TextBox where the user enters a path and a Button beside it to confirm. Anyone have an idea of how I can g

On MouseLeftButtonDown of an Im开发者_JAVA百科age, I want to display a ContextMenu that has a TextBox where the user enters a path and a Button beside it to confirm. Anyone have an idea of how I can go about doing this?


Put your TextBox and button in a Popup, and then set Popup.IsOpen = true when you get the MouseLeftButton down on the image.

If you've got some code that you've tried, post it in your question and I will try to help.

0

精彩评论

暂无评论...
验证码 换一张
取 消