TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anuja Godse
NA
27
6.3k
Popup move in WPF
Sep 23 2019 4:14 AM
I created a WPF Popup Control on my WPF Form. When I click, the Popup Opens and it also moves properly. but when I Clicked on textbox in popup window then popup moves slightly towards the edge of main window. I don't want to move popup when I clicked on textbox in Popup?
Here is my code:
private
void
MyAddJobPopup_MouseMove(
object
sender,System.Windows.Input.MouseEventArgs e)
{
if
(!MyAddJobPopup.IsOpen)
MyAddJobPopup.IsOpen =
true
;
if
(e.LeftButton == MouseButtonState.Pressed)
{ var mousePosition = e.GetPosition(
this
.HardwareElectricalTbl);
this
.MyAddJobPopup.HorizontalOffset = mousePosition.X;
this
.MyAddJobPopup.VerticalOffset = mousePosition.Y;
}
}
Reply
Answers (
3
)
Uppercase Textbox in WPF
Running WPF application On Windows Start