private bool PlaceIfArea(UIElement element) { var elementExtent = GeoArea.Intersection(Geo.GetArea(element), Projection.World); var isArea = !elementExtent.IsEmpty; if (isArea) { var destRect = Projection.ToRect(elementExtent, VisualExtent); element.Arrange(destRect); } return(isArea); }
public static void SetArea(DependencyObject dependencyObject, GeoArea area) { dependencyObject.SetValue(AreaProperty, area); }