static void shapeLayer_ShapesLoaded(object sender, ShapesLoadedEventArgs args) { if ((sender as ShapeFileLayer).ShapeCollection.Count > 0) { canvas = VirtualizationViewModel.FindParent <ShapeFilePanel>((sender as ShapeFileLayer).ShapeCollection[0] as UIElement); ShapeFileEventHelper.GetShapeFileEvents(sender as ShapeFileLayer).Execute(canvas); canvas.LayoutUpdated += new EventHandler(canvas_LayoutUpdated); } }
static void shapeLayer_ZoomedIn(object sender, ZoomEventArgs args) { ShapeFileEventHelper.GetShapeFileEvents(sender as ShapeFileLayer).Execute(canvas); }
static void shapeLayer_Panning(object sender, PanEventArgs args) { ShapeFileEventHelper.GetShapeFileEvents(sender as ShapeFileLayer).Execute(canvas); }
static void canvas_LayoutUpdated(object sender, EventArgs e) { ShapeFileEventHelper.GetShapeFileEvents(shapeLayer).Execute(canvas); }