开发者

WPF ContextMenu with TextBox and Button

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜