Reworked sample applications

This commit is contained in:
Clemens 2021-12-05 18:30:58 +01:00
parent fd7b53a37b
commit e3167b3e2c
4 changed files with 6 additions and 8 deletions

View file

@ -133,7 +133,8 @@
Value="{Binding TargetZoomLevel, ElementName=map, Mode=TwoWay}"/> Value="{Binding TargetZoomLevel, ElementName=map, Mode=TwoWay}"/>
</StackPanel> </StackPanel>
<Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4" Background="#AFFFFFFF"> <Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4"
Background="#AFFFFFFF" IsHitTestVisible="False">
<TextBlock x:Name="mouseLocation" Margin="4,2" Visibility="Collapsed"/> <TextBlock x:Name="mouseLocation" Margin="4,2" Visibility="Collapsed"/>
</Border> </Border>
</Grid> </Grid>

View file

@ -134,7 +134,8 @@
Value="{Binding TargetZoomLevel, ElementName=map, Mode=TwoWay}"/> Value="{Binding TargetZoomLevel, ElementName=map, Mode=TwoWay}"/>
</StackPanel> </StackPanel>
<Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4" Background="#AFFFFFFF"> <Border HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4"
Background="#AFFFFFFF" IsHitTestVisible="False">
<TextBlock x:Name="mouseLocation" Margin="4,2" Visibility="Collapsed"/> <TextBlock x:Name="mouseLocation" Margin="4,2" Visibility="Collapsed"/>
</Border> </Border>
</Grid> </Grid>

View file

@ -165,6 +165,7 @@
x:Name="mouseLocation" Margin="4" x:Name="mouseLocation" Margin="4"
Background="{Binding Background, ElementName=map}" Background="{Binding Background, ElementName=map}"
Foreground="{Binding Foreground, ElementName=map}" Foreground="{Binding Foreground, ElementName=map}"
HorizontalAlignment="Center" VerticalAlignment="Top"/> HorizontalAlignment="Center" VerticalAlignment="Top"
IsHitTestVisible="False"/>
</Grid> </Grid>
</Window> </Window>

View file

@ -46,11 +46,6 @@ namespace SampleApplication
nameof(OutlineThickness), typeof(double), typeof(OutlinedText), nameof(OutlineThickness), typeof(double), typeof(OutlinedText),
new FrameworkPropertyMetadata(1d, FrameworkPropertyMetadataOptions.AffectsMeasure, (o, e) => ((OutlinedText)o).text = null)); new FrameworkPropertyMetadata(1d, FrameworkPropertyMetadataOptions.AffectsMeasure, (o, e) => ((OutlinedText)o).text = null));
public OutlinedText()
{
IsHitTestVisible = false;
}
public string Text public string Text
{ {
get { return (string)GetValue(TextProperty); } get { return (string)GetValue(TextProperty); }