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); } }