Example #1
0
 public static Image GetSymbol(PointOptionsControl ctl)
 {
     return GetSymbol(ctl.Shape, ctl.Size, ctl.Color, ctl.DrawOutline);
 }
Example #2
0
 private void lstLayers_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     var selected = lstLayers.SelectedItem as LayerViewModel;
     grpLayer.IsEnabled = (selected != null);
     if (selected != null && selected is VectorLayerViewModel) {
         var vector = selected as VectorLayerViewModel;
         if (vector.Symbol != null) {
             var info = vector.Symbol.Tag as SymbolInfo;
             var control = new PointOptionsControl(info);
             control.ValuesChanged += ctl => {
                                          vector.Symbol = MapSymbolGenerator.GetSymbol(ctl);
                                      };
             grpLayer.Content = control;
         } else {
             grpLayer.Content = new VectorOptionsControl(vector);
         }
     } else {
         grpLayer.Content = null;
     }
 }
 public static Image GetSymbol(PointOptionsControl ctl)
 {
     return(GetSymbol(ctl.Shape, ctl.Size, ctl.Color, ctl.DrawOutline));
 }