laptop and a wrench

Error

Tapping a button inside a Callout Defintion in ArcGIS Runtime SDK for .NET app fails to display a message box.

Última publicación: May 11, 2020 ArcGIS Runtime SDK
Número de ID del error BUG-000122234
EnviadoMay 8, 2019
Última modificaciónJuly 18, 2025
Relacionado conArcGIS Runtime SDK
Versión encontrada100.4
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida100.8
EstadoFixed

Solución alternativa

#. 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}" />

Pasos para reproducir

ID del error: BUG-000122234

Software:

  • ArcGIS Runtime SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga