Ejemplo n.º 1
0
 public static bool Contains(
     this MapRegion region,
     Position position)
 {
     if (region == null)
     {
         return(false);
     }
     return(region.ToBounds().Contains(position));
 }
Ejemplo n.º 2
0
        public static bool Contains(
            this MapRegion region,
            Bounds bounds)
        {
            if (region == null || bounds == null)
            {
                return(false);
            }

            return(region.ToBounds().Intersects(bounds));
        }