-
Notifications
You must be signed in to change notification settings - Fork 521
/
TakeScreenshot.xaml
25 lines (25 loc) · 1.07 KB
/
TakeScreenshot.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.TakeScreenshot.TakeScreenshot"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<Grid>
<esriUI:MapView x:Name="MyMapView" />
<Button x:Name="ScreenshotButton"
Margin="10"
Clicked="OnTakeScreenshotClicked"
HorizontalOptions="End"
Text="Capture"
VerticalOptions="Start" />
<Border x:Name="ScreenshotView"
Padding="{OnIdiom Phone=50,
Default=100}"
Background="#AA333333"
IsVisible="False">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
</Border.GestureRecognizers>
<Image x:Name="ScreenshotImage" />
</Border>
</Grid>
</ContentPage>