<DataTemplate x:Key="MyFeatureLayerInfoWindowTemplate"> <StackPanel> <TextBlock Text="{Binding [STATE_NAME]}" Foreground="Black" FontSize="12" /> <Image Source="http://2.bp.blogspot.com/-2TNxVSJ4J9E/TfYfd0ChiMI/AAAAAAAABcc/53CtYEptiBY/s1600/USA-flag.jpg" Height="300" Width="300"/> <Button Content="Close" Click="Button_Click"/> </StackPanel> </DataTemplate>
private void Button_Click(object sender, RoutedEventArgs e) { MyInfoWindow.IsOpen = false; }
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.