0

i need to start my WPF form in the right bottom corner and i succeeded doing this.

but if the windows in Hebrew then my WPF windows need to pop in the left-bottom.

i have tried this so far:

var desktop = Screen.PrimaryScreen.WorkingArea;
Left = desktop.Left - Width;
Top = desktop.Bottom - Height;

and i tried stuff like: detect os language from c#

but with on success.

how can i detect in c# if the task-bar icons on the right or the left?

thanks

Community
  • 1
  • 1
Doron Eli
  • 71
  • 1
  • 9

1 Answers1

1

Actually, I think you went in right direction with detect os language from c#

It should be enough to check if

System.Globalization.CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft

is set to true.

Community
  • 1
  • 1
Manthess
  • 141
  • 1
  • 4