<UserControl.Resources> <esri:SimpleMarkerSymbol x:Key="RedMarkerSymbol" Color="Red" Size="12" Style="Circle" /> <esri:TextSymbol x:Key="THELabelSymbol" FontSize="12"/> <esri:SimpleLineSymbol x:Key="DrawLineSymbol" Color="Green" Width="4" /> <esri:SimpleFillSymbol x:Key="DrawFillSymbol" Fill="#3300FF00" BorderBrush="Green" BorderThickness="2" /> <esri:PictureMarkerSymbol x:Name="DropPinMarkerSymbol" OffsetX="0" OffsetY="23" Source="........blah.png"/> <esri:FillSymbol x:Key="THEFill"> <esri:FillSymbol.ControlTemplate> <ControlTemplate> <Path x:Name="Element" Fill="#FFCCCCCC" Stroke="Blue" StrokeThickness="3" StrokeDashArray="3,5" StrokeDashCap="Triangle" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" Opacity=".35"/> </ControlTemplate> </esri:FillSymbol.ControlTemplate> </esri:FillSymbol> <esri:FillSymbol x:Key="cluFill" Fill="{Binding THEFillColor}"> <esri:FillSymbol.ControlTemplate> <ControlTemplate> <Path x:Name="Element" Stroke="#FFFF00" StrokeThickness="3" StrokeDashArray="2,1" StrokeDashOffset="0" Opacity="1" Fill="{Binding Symbol.Fill}" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" Cursor="Hand"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="SelectionStates"> <VisualState x:Name="Unselected"/> <VisualState x:Name="Selected"> <Storyboard> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Element" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.25" /> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Element" Storyboard.TargetProperty="StrokeThickness" To="4" Duration="0:0:0.25" /> <DoubleAnimation BeginTime="0:0:0" Storyboard.TargetName="Element" Storyboard.TargetProperty="StrokeDashOffset" Duration="0:4:0" RepeatBehavior="Forever" From="1000" To="0"/> </Storyboard> </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="FocusStates"> <VisualState x:Name="Focused"> <Storyboard> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Element" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.25" /> <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="Element" Storyboard.TargetProperty="StrokeThickness" To="3" Duration="0:0:0.25" /> </Storyboard> </VisualState> <VisualState x:Name="Unfocused"/> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Path.Effect> <DropShadowEffect Opacity="0"/> </Path.Effect> </Path> </ControlTemplate> </esri:FillSymbol.ControlTemplate> </esri:FillSymbol> <esri:DynamicLayerInfoCollection x:Key="DynamicLayers"> <esri:DynamicLayerInfo ID="0" Name="Blah" DefaultVisibility="False" > <esri:DynamicLayerInfo.Source> <esri:LayerMapSource MapLayerID="0"/> </esri:DynamicLayerInfo.Source> </esri:DynamicLayerInfo> <esri:DynamicLayerInfo ID="1" Name="Blah1" DefaultVisibility="True"> <esri:DynamicLayerInfo.Source> <esri:LayerMapSource MapLayerID="1"/> </esri:DynamicLayerInfo.Source> </esri:DynamicLayerInfo> </esri:DynamicLayerInfoCollection> <esri:LayerDrawingOptionsCollection x:Key="LayerDrawing"> <esri:LayerDrawingOptions LayerID="5"> <esri:LayerDrawingOptions.Renderer> <esri:SimpleRenderer> <esri:SimpleFillSymbol BorderBrush="Brown" Fill="Transparent" BorderThickness="2"/> </esri:SimpleRenderer> </esri:LayerDrawingOptions.Renderer> </esri:LayerDrawingOptions> <esri:LayerDrawingOptions LayerID="4"> <esri:LayerDrawingOptions.Renderer> <esri:SimpleRenderer> <esri:SimpleFillSymbol BorderBrush="SaddleBrown" Fill="Transparent" BorderThickness="2"/> </esri:SimpleRenderer> </esri:LayerDrawingOptions.Renderer> </esri:LayerDrawingOptions> </esri:LayerDrawingOptionsCollection> <esri:EditGeometry x:Key="MyEditor" IsEnabled="True" Map="{Binding ElementName=Map}" /> <esri:Draw x:Key="Drawer" Map="{Binding ElementName=Map}" DrawMode="None" FillSymbol="{StaticResource DrawFillSymbol}" LineSymbol="{StaticResource DrawLineSymbol}" DrawComplete="Drawer_OnDrawComplete"/> <esri:Draw x:Key="PinDrawer" Map="{Binding ElementName=Map}" DrawMode="Point" DrawComplete="PinDrawer_OnDrawComplete" /> <esri:Draw x:Key="BinDrawer" Map="{Binding ElementName=Map}" DrawMode="Point" DrawComplete="BinDrawer_OnDrawComplete" /> </UserControl.Resources> <Grid x:Name="LayoutRoot" Background="{StaticResource StandardLightAccentLineBrush}"> <esri:Map x:Name="Map" controls:CursorSet.ID="{Binding CursorSet}" WrapAround="true" IsLogoVisible="False"> <esri:Map.Extent> <esri:Envelope XMin="-1.38957793088E7" YMin="2812752.3691999987" XMax="-7449272.308800001" YMax="6352014.369199999" > <esri:Envelope.SpatialReference> <esri:SpatialReference WKID="3857"/> </esri:Envelope.SpatialReference> </esri:Envelope> </esri:Map.Extent> </esri:Map> <esri:ScaleLine Map="{Binding ElementName=Map}" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Bottom" Foreground="White"> <esri:ScaleLine.Effect> <DropShadowEffect ShadowDepth="2" BlurRadius="4" Opacity="0.75"/> </esri:ScaleLine.Effect> </esri:ScaleLine> <esri:MapProgressBar Map="{Binding ElementName=Map}" HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="200" Height="36" Margin="25" Style="{StaticResource MyCustomProgressBarStyle}"/> <esri:Navigation Margin="5" IsTabStop="False" Map="{Binding ElementName=Map}" HorizontalAlignment="Left" VerticalAlignment="Top"> <esri:Navigation.Resources> <Style TargetType="Button"> <Setter Property="IsTabStop" Value="False"/> </Style> </esri:Navigation.Resources> </esri:Navigation> </Grid> </UserControl>
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.