mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Reworked sample applications
This commit is contained in:
parent
fd7b53a37b
commit
e3167b3e2c
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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); }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue