<Border Style="{StaticResource MeasureBorder}" Padding="10,3,10,3" Opacity="0.8"> <Border.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#EE76A8D3" Offset="0"/> <GradientStop Color="#EE5B8CB5" Offset="0.25"/> <GradientStop Color="#EE363839" Offset="0.75"/> </LinearGradientBrush> </Border.Background> <Border.Effect> <DropShadowEffect /> </Border.Effect> <StackPanel> <StackPanel Orientation="Horizontal"> <Image Source="Images/i_measure.png" Height="15" Width="15"/> <TextBlock Text="Measure Tool" Foreground="White" FontWeight="Bold" Margin="5,0,0,0"/> </StackPanel> <StackPanel Orientation="Horizontal"> <ComboBox x:Name="AreaMeasureUnit" SelectedIndex="0"> <ComboBoxItem Content="Acres"/> <ComboBoxItem Content="SquareFeet"/> <ComboBoxItem Content="SquareMiles"/> </ComboBox> <ComboBox x:Name="LengthMeasureUnit" SelectedIndex="0"> <ComboBoxItem Content="Feet"/> <ComboBoxItem Content="Miles"/> </ComboBox> </StackPanel> <Button Style="{StaticResource MenuItem}" Content="Click to Measure" > <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <esri:MeasureAction AreaUnit="{Binding ElementName=AreaMeasureUnit, Path=SelectedItem.Content}" DisplayTotals="True" DistanceUnit="{Binding ElementName=LengthMeasureUnit, Path=SelectedItem.Content}" MapUnits="DecimalDegrees" MeasureMode="Polygon" FillSymbol="{StaticResource MeasureFillSymbol}" TargetName="MyMap"/> </i:EventTrigger> </i:Interaction.Triggers> </Button> </StackPanel>
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.