laptop and a wrench

Bug

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

Zuletzt veröffentlicht: May 11, 2020 ArcGIS Runtime SDK
Bug-ID-Nummer BUG-000122234
EingereichtMay 8, 2019
Zuletzt geändertJuly 18, 2025
Gilt fürArcGIS Runtime SDK
Gefunden in Version100.4
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version100.8
StatusFixed

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000122234

Software:

  • ArcGIS Runtime SDK

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln