mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 15:05:50 +00:00
DependencyPropertyHelper
This commit is contained in:
parent
c74c2b1fed
commit
8e82e0bcbd
25 changed files with 224 additions and 176 deletions
|
|
@ -12,9 +12,11 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public class MapContentControl : ContentControl
|
||||
{
|
||||
public static readonly DependencyProperty AutoCollapseProperty = MapPanel.AutoCollapseProperty.AddOwner(typeof(MapContentControl));
|
||||
public static readonly DependencyProperty AutoCollapseProperty =
|
||||
DependencyPropertyHelper.AddOwner<MapContentControl>(MapPanel.AutoCollapseProperty);
|
||||
|
||||
public static readonly DependencyProperty LocationProperty = MapPanel.LocationProperty.AddOwner(typeof(MapContentControl));
|
||||
public static readonly DependencyProperty LocationProperty =
|
||||
DependencyPropertyHelper.AddOwner<MapContentControl>(MapPanel.LocationProperty);
|
||||
|
||||
static MapContentControl()
|
||||
{
|
||||
|
|
@ -50,8 +52,8 @@ namespace MapControl
|
|||
DefaultStyleKeyProperty.OverrideMetadata(typeof(Pushpin), new FrameworkPropertyMetadata(typeof(Pushpin)));
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register(
|
||||
nameof(CornerRadius), typeof(CornerRadius), typeof(Pushpin));
|
||||
public static readonly DependencyProperty CornerRadiusProperty =
|
||||
DependencyPropertyHelper.Register<Pushpin, CornerRadius>(nameof(CornerRadius));
|
||||
|
||||
public CornerRadius CornerRadius
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue