<symbols:MarkerSymbol x:Key="AtSymbol" OffsetX="10" OffsetY="10"> <symbols:MarkerSymbol.ControlTemplate> <ControlTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="MouseOver"> <Storyboard> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.15"/> </Storyboard> </VisualState> <VisualState x:Name="Normal"/> </VisualStateGroup> <VisualStateGroup x:Name="SelectionStates"> <VisualState x:Name="Selected"> <Storyboard> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5" AutoReverse="True" RepeatBehavior="Forever"/> </Storyboard> </VisualState> <VisualState x:Name="Unselected" /> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Image HorizontalAlignment="Left" Source="Images/At_Location.png" Opacity="1" Width="20" Height="20"/> <Image x:Name="Highlight" HorizontalAlignment="Left" Source="Images/At_Location_hover.png" Opacity="0" IsHitTestVisible="False" Width="20" Height="20"/> <Grid IsHitTestVisible="False" Grid.Row="1" Margin="20,-2,0,0"> <TextBlock Margin="2,2" Text="{Binding Attributes[Name]}" Foreground="Black" FontWeight="Bold" FontSize="12"/> <TextBlock Text="{Binding Attributes[Name]}" Foreground="White" FontWeight="Bold" FontSize="12"/> <Grid.Effect> <DropShadowEffect /> </Grid.Effect> </Grid> </Grid> </ControlTemplate> </symbols:MarkerSymbol.ControlTemplate> </symbols:MarkerSymbol> <esri:SimpleRenderer x:Name="AtSymbol_Renderer" Symbol="{StaticResource AtSymbol}"/>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und vieles mehr. Neu hier? Erstelle ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.