But when the windows font size is set to 125% or 150%,... the config window opens way more to the right und more down - see the screnshots below.
How can I ensure that the config window opens directly where the user clicked even if the user windows font size is set to >100%?
Code I use at the moment:
private void PreviewMouseDown(object sender, MouseButtonEventArgs e) {
vl.ChartControl.Dispatcher.InvokeAsync(() => {
clickPointScreen = vl.ChartControl.PointToScreen(e.GetPosition(vl.ChartControl));
});
}
private void WindowCreate() {
cw = new ConfigWindowInit() {
Top = clickPointScreen.Y,
Left = clickPointScreen.X,
};
cw.ShowConfigWindow();
}

Comment