Use monospaced font for mouse location.

This commit is contained in:
Clemens 2022-03-08 20:12:19 +01:00
parent f937781aeb
commit ad160f0daa
3 changed files with 17 additions and 17 deletions

View file

@ -116,6 +116,11 @@
local:HyperlinkText.InlinesSource="{Binding MapLayer.Description, ElementName=map}"/>
</Border>
<Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4"
Background="#AFFFFFFF" IsHitTestVisible="False">
<TextBlock x:Name="mouseLocation" FontFamily="Consolas" Margin="4,2" Visibility="Collapsed"/>
</Border>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6" Background="#7FFFFFFF">
<tools:MapLayersMenuButton x:Name="mapLayersMenuButton"
Margin="2" Padding="8" ToolTipService.ToolTip="Map Layers and Overlays"
@ -220,10 +225,5 @@
<FontIcon Glyph="&#xEBE6;"/>
</Button>
</StackPanel>
<Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4"
Background="#AFFFFFFF" IsHitTestVisible="False">
<TextBlock x:Name="mouseLocation" Margin="4,2" Visibility="Collapsed"/>
</Border>
</Grid>
</Page>

View file

@ -117,6 +117,11 @@
local:HyperlinkText.InlinesSource="{Binding MapLayer.Description, ElementName=map}"/>
</Border>
<Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4"
Background="#AFFFFFFF" IsHitTestVisible="False">
<TextBlock x:Name="mouseLocation" FontFamily="Consolas" Margin="4,2" Visibility="Collapsed"/>
</Border>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6">
<tools:MapLayersMenuButton x:Name="mapLayersMenuButton"
Margin="2" Padding="8" ToolTipService.ToolTip="Map Layers and Overlays"
@ -220,10 +225,5 @@
<FontIcon Glyph="&#xEBE6;"/>
</Button>
</StackPanel>
<Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4"
Background="#AFFFFFFF" IsHitTestVisible="False">
<TextBlock x:Name="mouseLocation" Margin="4,2" Visibility="Collapsed"/>
</Border>
</Grid>
</Window>

View file

@ -143,6 +143,13 @@
local:HyperlinkText.InlinesSource="{Binding MapLayer.Description, ElementName=map}"/>
</Border>
<local:OutlinedText
x:Name="mouseLocation" Margin="4" FontFamily="Consolas"
Background="{Binding Background, ElementName=map}"
Foreground="{Binding Foreground, ElementName=map}"
HorizontalAlignment="Center" VerticalAlignment="Top"
IsHitTestVisible="False"/>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6">
<tools:MapLayersMenuButton x:Name="mapLayersMenuButton"
Margin="2" ToolTip="Map Layers and Overlays"
@ -193,12 +200,5 @@
</Button.Visibility>
</Button>
</StackPanel>
<local:OutlinedText
x:Name="mouseLocation" Margin="4"
Background="{Binding Background, ElementName=map}"
Foreground="{Binding Foreground, ElementName=map}"
HorizontalAlignment="Center" VerticalAlignment="Top"
IsHitTestVisible="False"/>
</Grid>
</Window>