Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b9e383b
SamplePage now only binds its SampleInfo field to the details page, a…
imalcolm1 Oct 27, 2025
74ad657
Removed XamlC warning suppression
imalcolm1 Oct 27, 2025
ce4647e
Addressed some XC0022 warnings
imalcolm1 Oct 27, 2025
1fe4316
Addressed more XC0022 warnings
imalcolm1 Oct 27, 2025
682d8a1
XC0022 Warning: DownloadPreplannedMap
praveenaak Oct 27, 2025
6bbc336
addressed xc0022 warnings
praveenaak Oct 27, 2025
a213204
Enabled xaml source binding compilation
imalcolm1 Oct 27, 2025
af743a3
addressed xc0022 errors
praveenaak Oct 27, 2025
6867238
Merge branch 'maui-xamlc-warnings' of https://github.com/Esri/arcgis-…
praveenaak Oct 27, 2025
4498e88
Removed more XC0022 warnings from samples
imalcolm1 Oct 27, 2025
40ba6b1
Merge branch 'maui-xamlc-warnings' of https://github.com/Esri/arcgis-…
imalcolm1 Oct 27, 2025
b362e40
Quick fix for token sample from last commit
imalcolm1 Oct 27, 2025
411356e
Updated DataTypes for search and settings
imalcolm1 Oct 27, 2025
168012d
a few xc0022 fixes
praveenaak Oct 28, 2025
0d1fec7
Merge branch 'maui-xamlc-warnings' of https://github.com/Esri/arcgis-…
praveenaak Oct 28, 2025
8721b6a
a few more xc0022 fixes
praveenaak Oct 28, 2025
50d75e0
corrections
praveenaak Oct 28, 2025
7740a64
Fixed clicking on sample in category view not working
imalcolm1 Oct 28, 2025
7e4ae8b
correction - thumbnailUri
praveenaak Oct 28, 2025
417f4da
Cleanup
imalcolm1 Oct 28, 2025
c275c97
Merge branch 'maui-xamlc-warnings' of https://github.com/Esri/arcgis-…
imalcolm1 Oct 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MAUI/Maui.Samples/ArcGIS.Samples.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<RuntimeIdentifier Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' AND '$(Platform)' == 'AnyCPU'">win-x64</RuntimeIdentifier>
<AppxPackageDir>..\..\..\output\$(RuntimeIdentifier)\</AppxPackageDir>
<NoWarn>$(NoWarn);XC0022;XC0025</NoWarn> <!-- Disable XamlC warnings until addressed -->
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<ContentPage x:Class="ArcGIS.Samples.CreateMobileGeodatabase.CreateMobileGeodatabase"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
Expand Down Expand Up @@ -51,7 +52,7 @@
</Grid>
</ListView.Header>
<ListView.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="esri:Feature">
<ViewCell>
<Grid ColumnDefinitions="*,*">
<Label Grid.Column="0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<ContentPage x:Class="ArcGIS.Samples.EditFeatureAttachments.EditFeatureAttachments"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<ContentPage.Resources>
<Style x:Key="IconStyle" TargetType="Button">
Expand All @@ -26,7 +27,7 @@
IsEnabled="False">
<!-- ItemTemplate defines how each item (Attachment) is rendered. -->
<ListView.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="esri:Attachment">
<ViewCell>
<Grid ColumnDefinitions="*,auto,auto" RowDefinitions="auto">
<Label Margin="5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,34 @@
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui"
xmlns:toolkit="clr-namespace:Esri.ArcGISRuntime.Toolkit.Maui;assembly=Esri.ArcGISRuntime.Toolkit.Maui">
<Grid>
<esriUI:MapView x:Name="MyMapView"
GeoViewTapped="MyMapView_GeoViewTapped" />
<esriUI:MapView x:Name="MyMapView" GeoViewTapped="MyMapView_GeoViewTapped" />
<Grid x:Name="FeatureFormPanel"
IsVisible="False" Padding="20"
BackgroundColor="{AppThemeBinding Light=White, Dark=Black}">
Padding="20"
BackgroundColor="{AppThemeBinding Light=White,
Dark=Black}"
IsVisible="False">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollView Grid.Row="0" MaximumWidthRequest="400">
<toolkit:FeatureFormView x:Name="FeatureFormViewPanel" />
</ScrollView>
<Grid Grid.Row="1" ColumnSpacing="10" MaximumWidthRequest="400">
<Grid Grid.Row="1"
ColumnSpacing="10"
MaximumWidthRequest="400">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Text="Save"
Grid.Column="0"
<Button Grid.Column="0"
x:DataType="toolkit:FeatureFormView"
Clicked="SaveButton_Clicked"
IsEnabled="{Binding Source={x:Reference FeatureFormViewPanel}, Path=IsValid}" />
<Button Text="Cancel"
Grid.Column="1"
Clicked="CancelButton_Clicked" />
IsEnabled="{Binding Source={x:Reference FeatureFormViewPanel}, Path=IsValid}"
Text="Save" />
<Button Grid.Column="1"
Clicked="CancelButton_Clicked"
Text="Cancel" />
</Grid>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
<ContentPage x:Class="ArcGIS.Samples.ReadShapefileMetadata.ReadShapefileMetadata"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:Microsoft.Maui.Controls;assembly=Microsoft.Maui.Controls"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">

<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
<Border x:Name="ControlPanel" Style="{DynamicResource EsriSampleControlPanel}">
<ScrollView MaximumHeightRequest="{OnIdiom Desktop=500, Default={Binding Height, Source=ControlPanel}}" Orientation="{OnPlatform iOS=Both, Default=Vertical}">
<StackLayout x:Name="InfoList" Spacing="5">
<ScrollView x:DataType="controls:Border"
MaximumHeightRequest="{OnIdiom Desktop=500, Default={Binding Height, Source=ControlPanel}}"
Orientation="{OnPlatform iOS=Both, Default=Vertical}">
<StackLayout x:Name="InfoList"
x:DataType="esri:ShapefileInfo"
Spacing="5">
<Label FontAttributes="Bold"
FontSize="Large"
HorizontalOptions="Start"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<ContentPage x:Name="StatsQueryGroupAndSortSample"
x:Class="ArcGIS.Samples.StatsQueryGroupAndSort.StatsQueryGroupAndSort"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
xmlns:local="clr-namespace:ArcGIS.Samples.StatsQueryGroupAndSort">

<ContentPage.Resources>
<ResourceDictionary>
Expand Down Expand Up @@ -42,7 +44,7 @@
SelectionMode="Single"
Style="{DynamicResource CollectionViewStyle}">
<CollectionView.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="esri:StatisticDefinition">
<Grid ColumnDefinitions="*,*">
<Label Text="{Binding OnFieldName}" />
<Label Grid.Column="1" Text="{Binding StatisticType}" />
Expand All @@ -56,7 +58,7 @@
<Label FontAttributes="Bold" Text="Group by" />
<CollectionView x:Name="GroupFieldsListBox" Style="{DynamicResource CollectionViewStyle}">
<CollectionView.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="esri:Field">
<Grid ColumnDefinitions="50,*">
<Switch HorizontalOptions="Start" Toggled="GroupField_Toggled" />
<Label Grid.Column="1"
Expand All @@ -70,7 +72,7 @@
<Label FontAttributes="Bold" Text="Order by" />
<CollectionView x:Name="OrderByFieldsListBox" Style="{DynamicResource CollectionViewStyle}">
<CollectionView.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="local:OrderFieldOption">
<Grid ColumnDefinitions="50, 2*, 2*">
<Switch IsToggled="{Binding OrderWith}" />
<Label Grid.Column="1"
Expand Down Expand Up @@ -103,14 +105,14 @@
MaximumHeightRequest="{OnIdiom Default=800,
Phone=600}">
<CollectionView.GroupHeaderTemplate>
<DataTemplate>
<DataTemplate x:DataType="local:ResultGroup">
<Label FontAttributes="Bold"
FontSize="Medium"
Text="{Binding GroupName}" />
</DataTemplate>
</CollectionView.GroupHeaderTemplate>
<CollectionView.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="local:StatisticResult">
<HorizontalStackLayout Spacing="5">
<Label FontAttributes="Bold" Text="{Binding FieldName}" />
<Label Text="{Binding StatValue}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
Grid.Row="0"
Grid.Column="1"
Clicked="MultipointButton_Click"
Style="{StaticResource IconStyle}"
ToolTipProperties.Text="Multipoint"
FontFamily="CalciteUIIconsSmallFontFamily"
FontSize="16"
Text="&#xe9f9; &#xe9f9;" />
Style="{StaticResource IconStyle}"
Text="&#xe9f9; &#xe9f9;"
ToolTipProperties.Text="Multipoint" />
<Button x:Name="PolylineButton"
Grid.Row="1"
Clicked="PolylineButton_Click"
Expand Down Expand Up @@ -91,42 +91,42 @@
</Border>
<Button Grid.Row="4"
Clicked="UndoButton_Click"
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}}"
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Style="{StaticResource IconStyle}"
Text="{StaticResource CalciteUIIcons_Glyph_Undo}"
ToolTipProperties.Text="Undo" />
<Button Grid.Row="4"
Grid.Column="1"
Clicked="RedoButton_Click"
IsEnabled="{Binding GeometryEditor.CanRedo, Source={x:Reference MyMapView}}"
IsEnabled="{Binding GeometryEditor.CanRedo, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Style="{StaticResource IconStyle}"
Text="{StaticResource CalciteUIIcons_Glyph_Redo}"
ToolTipProperties.Text="Redo" />
<Button Grid.Row="5"
Clicked="DeleteSelectedButton_Click"
IsEnabled="{Binding GeometryEditor.SelectedElement.CanDelete, Source={x:Reference MyMapView}, FallbackValue=False}"
IsEnabled="{Binding GeometryEditor.SelectedElement.CanDelete, Source={x:Reference MyMapView}, FallbackValue=False, x:DataType=esriUI:MapView}"
Style="{StaticResource IconStyle}"
Text="{StaticResource CalciteUIIcons_Glyph_Erase}"
ToolTipProperties.Text="Delete selected" />
<Button x:Name="SaveButton"
Grid.Row="5"
Grid.Column="1"
Clicked="SaveButton_Click"
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}}"
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Style="{StaticResource IconStyle}"
Text="{StaticResource CalciteUIIcons_Glyph_CheckCircle}"
ToolTipProperties.Text="Save edits" />
<Button Grid.Row="6"
Clicked="DiscardButton_Click"
IsEnabled="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}}"
IsEnabled="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Style="{StaticResource IconStyle}"
Text="{StaticResource CalciteUIIcons_Glyph_CircleDisallowed}"
ToolTipProperties.Text="Discard edits" />
<Button x:Name="DeleteAllButton"
Grid.Row="6"
Grid.Column="1"
Clicked="DeleteAllButton_Click"
IsEnabled="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, Converter={StaticResource InvertedBoolConverter}}"
IsEnabled="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, Converter={StaticResource InvertedBoolConverter}, x:DataType=esriUI:MapView}"
Style="{StaticResource IconStyle}"
Text="{StaticResource CalciteUIIcons_Glyph_Trash}"
ToolTipProperties.Text="Delete all geometries" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Clicked="DiscardButton_Click"
HeightRequest="40"
HorizontalOptions="Start"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Text="Cancel" />
<Button x:Name="SettingsButton"
Grid.Column="1"
Expand All @@ -37,8 +37,8 @@
Clicked="SaveButton_Click"
HeightRequest="40"
HorizontalOptions="End"
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}}"
IsEnabled="{Binding GeometryEditor.CanUndo, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Text="Done" />
</Grid>
<esriUI:MapView x:Name="MyMapView"
Expand Down Expand Up @@ -67,7 +67,7 @@
<Label Text="Allow vertex creation" VerticalOptions="Center" />
<Switch x:Name="AllowVertexCreationSwitch" />
</StackLayout>
<StackLayout IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, Converter={StaticResource InvertedBoolConverter}}"
<StackLayout IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, Converter={StaticResource InvertedBoolConverter}, x:DataType=esriUI:MapView}"
Orientation="Horizontal"
Spacing="10">
<Label Text="Geometry type" VerticalOptions="Center" />
Expand All @@ -76,24 +76,27 @@
<Button Grid.Row="2"
Grid.Column="3"
Clicked="UndoButton_Click"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Text="Undo">
<Button.IsEnabled>
<MultiBinding Converter="{StaticResource VariableMultiValueConverter}">
<Binding Converter="{StaticResource IsNotNullConverter}"
<Binding x:DataType="esriUI:MapView"
Converter="{StaticResource IsNotNullConverter}"
Path="GeometryEditor.PickedUpElement"
Source="{x:Reference MyMapView}" />
<Binding Path="GeometryEditor.CanUndo" Source="{x:Reference MyMapView}" />
<Binding x:DataType="esriUI:MapView"
Path="GeometryEditor.CanUndo"
Source="{x:Reference MyMapView}" />
</MultiBinding>
</Button.IsEnabled>
</Button>
<Button Clicked="RedoButton_Click"
IsEnabled="{Binding GeometryEditor.CanRedo, Source={x:Reference MyMapView}}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}}"
IsEnabled="{Binding GeometryEditor.CanRedo, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Text="Redo" />
<Button Clicked="DeleteSelectedButton_Click"
IsEnabled="{Binding GeometryEditor.SelectedElement.CanDelete, Source={x:Reference MyMapView}, FallbackValue=False}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}}"
IsEnabled="{Binding GeometryEditor.SelectedElement.CanDelete, Source={x:Reference MyMapView}, FallbackValue=False, x:DataType=esriUI:MapView}"
IsVisible="{Binding GeometryEditor.IsStarted, Source={x:Reference MyMapView}, x:DataType=esriUI:MapView}"
Text="Delete" />
<Button x:Name="ClosePopupButton"
Clicked="ClosePopupButton_Clicked"
Expand Down
Loading
Loading