File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1818using Esri . ArcGISRuntime . Data ;
1919using Esri . ArcGISRuntime . Mapping . Popups ;
2020using Esri . ArcGISRuntime . Toolkit . Internal ;
21+ #if MAUI
22+ using Esri . ArcGISRuntime . Toolkit . Maui ;
23+ #else
24+ using Esri . ArcGISRuntime . Toolkit . UI . Controls ;
25+ #endif
26+
2127#if MAUI
2228using TextBlock = Microsoft . Maui . Controls . Label ;
2329#else
@@ -134,7 +140,7 @@ private void RefreshTable()
134140 gestureRecognizer . Tapped += ( s , e ) =>
135141 {
136142 if ( uri is not null )
137- _ = Launcher . LaunchUriAsync ( uri ) ;
143+ PopupViewer . GetPopupViewerParent ( this ) ? . OnHyperlinkClicked ( uri ) ;
138144 } ;
139145 t . GestureRecognizers . Add ( gestureRecognizer ) ;
140146 t . FormattedText = new FormattedString ( ) ;
@@ -144,7 +150,7 @@ private void RefreshTable()
144150 hl . Click += ( s , e ) =>
145151 {
146152 if ( uri is not null )
147- _ = Launcher . LaunchUriAsync ( uri ) ;
153+ PopupViewer . GetPopupViewerParent ( this ) ? . OnHyperlinkClicked ( uri ) ;
148154 } ;
149155 hl . Inlines . Add ( "View" ) ;
150156 t . Inlines . Add ( hl ) ;
@@ -234,4 +240,4 @@ public Style FieldTextStyle
234240 PropertyHelper . CreateProperty < Style , FieldsPopupElementView > ( nameof ( FieldTextStyle ) ) ;
235241 }
236242}
237- #endif
243+ #endif
You can’t perform that action at this time.
0 commit comments