I am new to WPF. In my WPF application button design have status bar. With in status bar I put one TextBlock. That Text Box wants to show current position of the mouse. If I click one control means that wants to show that controls current position. That's want to continuously change when I move cursor
Point position = Mouse.GetPosition(MainWindow);
Cursorposition.Text = "X:" + position.X + "Y:" + position.Y;
its gets only (0,0) I want change dynamically when I move cursor.
your answer ok for mainwindow but in mainwindow I used user control means how i get?