Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static void SetArea(DependencyObject dependencyObject, GeoArea area)
 {
     dependencyObject.SetValue(AreaProperty, area);
 }