Bug
| Bug-ID-Nummer | BUG-000122234 |
|---|---|
| Eingereicht | May 8, 2019 |
| Zuletzt geändert | July 18, 2025 |
| Gilt für | ArcGIS Runtime SDK |
| Gefunden in Version | 100.4 |
| Betriebssystem | Windows OS |
| Betriebssystemversion | 10.0 64 Bit |
| Behoben in Version | 100.8 |
| Status | Fixed |
#. Override the GeoView style.
#. Disable manipulation on the root.
#. Enabling manipulation on just the MapSurface object.
```
<Grid>
<Grid.Resources>
<Style x:Key="GeoViewNewStyle" TargetType="{x:Type esri:GeoView}">
<Setter Property="IsManipulationEnabled" Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type esri:GeoView}">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="ExpandCollapseAttribution">
<VisualState x:Name="CollapsedAttribution" />
<VisualState x:Name="ExpandedAttribution">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="AttributionText" Storyboard.TargetProperty="TextWrapping">
<DiscreteObjectKeyFrame KeyTime="0:0:0">
<DiscreteObjectKeyFrame.Value>
<TextWrapping>Wrap</TextWrapping>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid>
<Border x:Name="MapSurface" Width="Auto" Height="Auto" IsManipulationEnabled="True" />
<!-- Note: Before removing the attribution, please read the terms of use -->
<Grid x:Name="AttributionArea" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Background="#A6FFFFFF" ToolTip="{Binding AttributionText, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock x:Name="AttributionText" Text="{Binding AttributionText, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" Foreground="#FF323232" Margin="4,2" FontSize="12" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" />
<ContentControl x:Name="EsriLogo" Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Right">
<TextBlock Text="Powered by Esri" Foreground="#FF323232" FontSize="12" Margin="4,2" />
</ContentControl>
</Grid>
<Rectangle x:Name="ZoomBox" Fill="#55FFFFFF" Stroke="CornflowerBlue" StrokeThickness="2" Visibility="Collapsed" />
<Border x:Name="Overlay" />
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Grid.Resources>
<esri:MapView x:Name="mapView" Style="{StaticResource GeoViewNewStyle}" />
Bug-ID: BUG-000122234
Software:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen