mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Handle frozen Data in WPF MapPath
This commit is contained in:
parent
14c26b34e8
commit
2652e5eb0f
2 changed files with 17 additions and 2 deletions
|
|
@ -14,7 +14,15 @@ namespace MapControl
|
|||
{
|
||||
public partial class MapPath : Shape, IWeakEventListener
|
||||
{
|
||||
public static readonly DependencyProperty DataProperty = Path.DataProperty.AddOwner(typeof(MapPath));
|
||||
public static readonly DependencyProperty DataProperty = Path.DataProperty.AddOwner(
|
||||
typeof(MapPath), new PropertyMetadata(null,
|
||||
(o, e) =>
|
||||
{
|
||||
if (e.NewValue != e.OldValue) // Data is actually a new Geometry
|
||||
{
|
||||
((MapPath)o).UpdateData();
|
||||
}
|
||||
}));
|
||||
|
||||
public Geometry Data
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue