curiousity
curiousity

Reputation: 4741

Move WPF Window several pixels right

How to move a wpf window from c# code? I just dlike to write something like

if(condition)
 {
   myWPFWindow.MoveThisWindowSeveralPixelsRight();
 }

Upvotes: 0

Views: 337

Answers (1)

jschroedl
jschroedl

Reputation: 4996

Modify the Left value.

myWPFWindow.Left += 10;

Upvotes: 2

Related Questions