예제 #1
0
 public static void SetMapItem(object instance, DynamicUpdateMapItem mapItem)
 {
     if (mapItem != null)
     {
         AttachablePropertyServices.SetProperty(instance, mapItemProperty, mapItem);
     }
     else
     {
         AttachablePropertyServices.RemoveProperty(instance, mapItemProperty);
     }
 }
 public static void SetMapItem(object instance, DynamicUpdateMapItem mapItem)
 {
     if (mapItem != null)
     {
         AttachablePropertyServices.SetProperty(instance, mapItemProperty, mapItem);
     }
     else
     {
         AttachablePropertyServices.RemoveProperty(instance, mapItemProperty);
     }
 }