public ICommand CloneWaterbody { get; private set; }
this.CloneWaterbody = new DelegateCommand(CloneWaterbodyExecute, CloneWaterbodyCanExecute);
<Button x:Name="ButtonCloneWaterbody" DataContext="" Margin="4" Width="24" Height="24" Command="{Binding CloneWaterbody}" CommandParameter="{Binding CurrentFeature}" Click="ButtonCloneWaterbody_Click" ToolTipService.ToolTip="Clone 24K Hydro Feature"> <Button.Content> <Image Source="images/clonewaterbody.png" Stretch="None" /> </Button.Content> </Button>
//setup so we can interact with the map EditWidget.DrawObject.IsEnabled = true; EditWidget.DrawWidget = EditWidget.GetType(); EditWidget.DrawObject.DrawMode = DrawMode.Point; EditWidget.MapControl.Cursor = Cursors.Arrow;
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.