示例#1
0
 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);
     }
 }
示例#2
0
 static void shapeLayer_ZoomedIn(object sender, ZoomEventArgs args)
 {
     ShapeFileEventHelper.GetShapeFileEvents(sender as ShapeFileLayer).Execute(canvas);
 }
示例#3
0
 static void shapeLayer_Panning(object sender, PanEventArgs args)
 {
     ShapeFileEventHelper.GetShapeFileEvents(sender as ShapeFileLayer).Execute(canvas);
 }
示例#4
0
 static void canvas_LayoutUpdated(object sender, EventArgs e)
 {
     ShapeFileEventHelper.GetShapeFileEvents(shapeLayer).Execute(canvas);
 }