mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Fixed clipping of WinUI/UWP MapPath
This commit is contained in:
parent
fd13503613
commit
a282ba1b5e
6 changed files with 101 additions and 26 deletions
|
|
@ -48,12 +48,20 @@
|
|||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
<!-- Path with transformed Geometry -->
|
||||
<Path Fill="Red" Opacity="0.4" IsHitTestVisible="False">
|
||||
<Path.Data>
|
||||
<EllipseGeometry RadiusX="20" RadiusY="20"
|
||||
Transform="{Binding MapTransform, RelativeSource={RelativeSource TemplatedParent}}"/>
|
||||
</Path.Data>
|
||||
</Path>
|
||||
<!-- MapPath with Location -->
|
||||
<map:MapPath Stroke="Green" StrokeThickness="2" IsHitTestVisible="False"
|
||||
Location="{TemplateBinding Location}">
|
||||
<map:MapPath.Data>
|
||||
<EllipseGeometry RadiusX="20" RadiusY="20"/>
|
||||
</map:MapPath.Data>
|
||||
</map:MapPath>
|
||||
<Path x:Name="selectedPath" Fill="White" Opacity="0">
|
||||
<Path.Data>
|
||||
<EllipseGeometry RadiusX="12" RadiusY="12"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue