public static readonly DependencyProperty BindableExtentProperty = DependencyProperty.RegisterAttached("BindableExtent", typeof(Geometry), typeof(OwnerClass), new PropertyMetadata(new PropertyChangedCallback(OnBindableExtentChanged))); public static Geometry GetBindableExtent(DependencyObject d) { return (Geometry)d.GetValue(BindableExtentProperty); } public static void SetBindableExtent(DependencyObject d, Geometry value) { d.SetValue(BindableExtentProperty, value); } private static void OnBindableExtentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Map map = d as Map; var newExtent = (Geometry)e.NewValue; map.ZoomTo(newExtent); }
this.LayoutRoot.Children.Add(VM.MyTextBlock);
<Grid x:Name="LayoutRoot"> <TextBlock ???/> </Grid>
<esri:Map Layers="{Binding Map.Layers}" PanDuration="{Binding Map.PanDuration}" ZoomDuration="{Binding Map.ZoomDuration}" ZoomFactor="{Binding Map.ZoomFactor}"/>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.