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
No related branches found
No related tags found
1 merge request!70added dpi compatibility mode
...@@ -23,9 +23,13 @@ namespace InnoLabProjektDektopApp ...@@ -23,9 +23,13 @@ namespace InnoLabProjektDektopApp
public App() 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)));
} }
protected override void OnStartup(StartupEventArgs e) protected override void OnStartup(StartupEventArgs e)
{ {
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</Border> </Border>
</Grid> </Grid>
<TextBlock Margin="0,10,0,0" <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 --> <!-- Überschrift -->
<Grid Margin="0,20"> <Grid Margin="0,20">
......
...@@ -131,8 +131,7 @@ namespace InnoLabProjektDektopApp.Utils ...@@ -131,8 +131,7 @@ namespace InnoLabProjektDektopApp.Utils
// Reopen the context menu if requested // Reopen the context menu if requested
if (showContextMenu) if (showContextMenu)
{ {
var mousePosition = System.Windows.Forms.Control.MousePosition; _notifyIcon.ContextMenuStrip.Show();
_notifyIcon.ContextMenuStrip.Show(mousePosition);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment