mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Updated MapContentControl, MapItem, MapPath
This commit is contained in:
parent
2dc7431c25
commit
7cfb80520b
18 changed files with 216 additions and 133 deletions
|
|
@ -88,5 +88,26 @@ namespace MapControl
|
|||
{
|
||||
return DependencyProperty.RegisterReadOnly(name, typeof(TValue), typeof(TOwner), new PropertyMetadata(defaultValue));
|
||||
}
|
||||
|
||||
public static DependencyProperty AddOwner<TOwner, TValue>(
|
||||
DependencyProperty source) where TOwner : DependencyObject
|
||||
{
|
||||
return source.AddOwner(typeof(TOwner));
|
||||
}
|
||||
|
||||
public static DependencyProperty AddOwner<TOwner, TValue>(
|
||||
DependencyProperty source,
|
||||
TValue defaultValue) where TOwner : DependencyObject
|
||||
{
|
||||
return source.AddOwner(typeof(TOwner), new FrameworkPropertyMetadata(defaultValue));
|
||||
}
|
||||
|
||||
public static DependencyProperty AddOwner<TOwner, TValue>(
|
||||
DependencyProperty source,
|
||||
Action<TOwner, TValue, TValue> changed = null) where TOwner : DependencyObject
|
||||
{
|
||||
return source.AddOwner(typeof(TOwner), new FrameworkPropertyMetadata(
|
||||
(o, e) => changed((TOwner)o, (TValue)e.OldValue, (TValue)e.NewValue)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue