I just want to set windowstartuplocation to top right corner of desktop. Now to clear some things up, I saw this thread with same question:
Changing the start up location of a WPF window
Now I don't want to get confused to what they are referring as right or left, I want my application to start in top right corner,where right refers to MY RIGHT SIDE(not as if my desktop is a person looking at me and ITS RIGHT SIDE).So,
1.)setting left and top to 0 only is not a solution(brings app to left side not right)
2.)I tried using SystemParameters.PrimaryScreenWidth, but I can't perform operation to subtract the width of my app from this value at binding time.
Is there a way I can do it without going into much complexity?