laptop and a wrench

Bogue

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

Dernière publication: May 11, 2020 ArcGIS Runtime SDK
Numéro d’ID de bogue BUG-000122234
EnvoiMay 8, 2019
Dernière modificationJuly 18, 2025
S’applique àArcGIS Runtime SDK
Version trouvée100.4
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction100.8
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000122234

Logiciel:

  • ArcGIS Runtime SDK

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement