Skip to content
Snippets Groups Projects
Commit 2b6c6d13 authored by Philipp Müller's avatar Philipp Müller
Browse files

added dpi compatibility mode

parent acd60079
Branches
No related tags found
1 merge request!70added dpi compatibility mode
......@@ -23,6 +23,10 @@ namespace InnoLabProjektDektopApp
public App()
{
// enable high DPI support
System.Windows.FrameworkElement.LanguageProperty.OverrideMetadata(
typeof(System.Windows.FrameworkElement),
new FrameworkPropertyMetadata(System.Windows.Markup.XmlLanguage.GetLanguage(System.Globalization.CultureInfo.CurrentCulture.IetfLanguageTag)));
}
......
......
......@@ -85,7 +85,7 @@
</Border>
</Grid>
<TextBlock Margin="0,10,0,0"
Text="On the left side, you can find the programs that you marked as distracting. On the left, you find all currently running programs that you can potentially add to the distracting programs." />
Text="On the left side, you can find the programs that you marked as distracting. On the right, you find all currently running programs that you can potentially add to the distracting programs." />
<!-- Überschrift -->
<Grid Margin="0,20">
......
......
......@@ -131,8 +131,7 @@ namespace InnoLabProjektDektopApp.Utils
// Reopen the context menu if requested
if (showContextMenu)
{
var mousePosition = System.Windows.Forms.Control.MousePosition;
_notifyIcon.ContextMenuStrip.Show(mousePosition);
_notifyIcon.ContextMenuStrip.Show();
}
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment