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;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.