|
POST
|
XAML: <ComboBox ItemsSource="{Binding GeometryTypes}" SelectedItem="{Binding SelectedGeometryType, Mode=TwoWay}" Text="Select Option" /> ViewModel: public List<string> GeometryTypes => new List<string>() { "Polygon", "Polyline", "Point" };
public string SelectedGeometryType { get; set; } = "Polygon";
... View more
09-16-2025
10:14 PM
|
0
|
0
|
618
|
|
POST
|
Hi, You can do it from xaml: <ComboBox Height="23" Name="comboBox1" Width="120">
<ComboBoxItem Content="Polygon"/>
<ComboBoxItem Content="Polyline"/>
<ComboBoxItem Content="Point"/>
</ComboBox>
... View more
09-16-2025
10:38 AM
|
0
|
0
|
638
|
|
POST
|
Hi, "The AppStudio Cloud Make build service will be retired in February 2025. Up until the retirement date you will be able to build (using Cloud Make) your app and deploy your apps to app stores (Google Play and Apple App Store)." Source is here. More info is here.
... View more
08-27-2025
11:25 PM
|
0
|
0
|
316
|
|
POST
|
I realize this is late help, but maybe it will help others. You need to check IsNull first on desired field: if (!row.IsNull(fieldName))
{
var value = row.GetString(fieldName);
return value;
} It applies to all Get* methods.
... View more
08-27-2025
11:11 PM
|
0
|
0
|
602
|
|
POST
|
I am facing similar issues on 200.7 and .NET 9 MAUI. Last of them is with ArcGIS Runtime: Esri.ArcGISRuntime.ArcGISRuntimeException: Invalid argument: Scale is less than or equal to zero. void ArcGISException.HandleCoreError(CoreError error, bool throwException) Assembly: Esri.ArcGISRuntime Version: 200.7.0.0 PublicKeyToken: xxxxxxxxxxxxxxxx void Interop.CheckError(IntPtr errorHandle, bool throwOnFailure, GCHandle wrapperHandle) void CoreMapView.InteractionZoomToScale(double scale, CoreCoordinate2D screenPoint) bool MapView.OnGeoViewManipulationDelta(PointF origin, PointF screenLocation, double translateX, double translateY, double scale, double rotation, bool isFlick, DeviceIndependentPointingDevice device) bool UserInteractionHandler.OnManipulationDelta(PointF origin, PointF screenLocation, double translateX, double translateY, double scale, double rotation, bool isFlick, DeviceIndependentPointingDevice device) bool AndroidDeviceInteractionHandler.OnTouchEvent(MotionEvent ev) GeoView(CoreGeoView geoView, Context context, IAttributeSet attr)+(object s, TouchEventArgs e) => { } Called from: bool IOnTouchListenerImplementor.OnTouch(View v, MotionEvent e) Application life cycle: Exception - This event error 09:33:30.000 AM Esri.ArcGISRuntime.ArcGISRuntimeException: Invalid argument: Scale is less than or equal to zero. Ui Lifecycle info 09:28:57.738 AM Window.Activated Ui Lifecycle info 09:28:57.715 AM Window.Resumed Ui Lifecycle info 09:28:34.904 AM Window.Stopped Ui Lifecycle info 09:28:33.904 AM Window.Deactivated All crashes after resume are random and it is not ArcGIS Maps SDK fault. I have found workaround for map freezing where suggests handle OnResume() event. Would it be helpful to make some delay inside OnResume()? Do you have some experience of handling application resume issues?
... View more
07-29-2025
03:09 AM
|
0
|
0
|
381
|
|
POST
|
Hi, You can access them from Catalog pane : protected override void OnClick()
{
var catalog = Project.GetCatalogPane();
var items = catalog.SelectedItems;
var item = items.OfType<ProGPXItem>().FirstOrDefault();
if (item == null)
return;
MessageBox.Show($"Selected Custom Item: {item.Name}");
} Change items.OfType object type <T> to your needs or use without <T>
... View more
07-13-2025
10:49 PM
|
1
|
0
|
972
|
|
POST
|
Hi, You need to start from FeatureLayer or StandaloneTable to get origin or joined table. protected override async void OnClick()
{
var map = MapView.Active.Map;
if (map == null || map.Layers.Count == 0)
{
MessageBox.Show("No layers found in the map.");
return;
}
var bfl = map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(layer => layer.Name.Equals("your layer name"));
if(bfl.HasJoins)
{
await QueuedTask.Run(() => {
var table1 = bfl.GetTable().GetJoin().GetOriginTable();
var table2 = bfl.GetTable().GetJoin().GetJoinedTable();
// your code here
});
}
}
... View more
07-02-2025
03:58 AM
|
0
|
1
|
633
|
|
POST
|
Hi, Your code works fine. Check layer name in TOC. Another one thing is your layer selectable?
... View more
06-12-2025
02:23 PM
|
0
|
1
|
448
|
|
POST
|
Hi, Try to change newSubpane parameter value to true: Geoprocessing.OpenToolDialog(scriptPath, null, null, newSubPane: true);
... View more
06-11-2025
10:14 PM
|
0
|
0
|
422
|
|
POST
|
Custom renderers could help you. The custom renderer approach allows you to use native controls and their features. By writing custom renderers, you can capture native touch events.
... View more
06-11-2025
07:36 AM
|
0
|
0
|
993
|
|
POST
|
There is possibility to use GeometryEditor which works with magnifier, but it has some requirements. More info in that thread.
... View more
06-11-2025
06:44 AM
|
0
|
0
|
1018
|
|
POST
|
Hi, You can switch off magnifier and implement your workflow on GeoViewHolding. Code below: // In MainPage constructor
mapView.InteractionOptions = new MapViewInteractionOptions()
{
IsMagnifierEnabled = false, // Disable magnifier.
};
... View more
06-10-2025
10:31 PM
|
0
|
2
|
1037
|
|
POST
|
I understood that you need the code in VB. The same classes and methods you can call from c#. 8-17 lines in VB code makes projection with transformation. wkid 102633 is code for ArcObjects esriSRProjCS_NAD1983SPCS_AK3FT. var areaOfInterest = MapView.Active.Extent;
MapPoint pPoint = MapPointBuilderEx.CreateMapPoint((areaOfInterest.XMax - areaOfInterest.XMin) / (double)2 + areaOfInterest.XMin, (areaOfInterest.YMax - areaOfInterest.YMin) / (double)2 + areaOfInterest.YMin, MapView.Active.Map.SpatialReference);
SpatialReference pGeoCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(SpatialReferences.WGS84);
SpatialReference pProjCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(102633);
ProjectionTransformation pGeoTrans = ProjectionTransformation.Create(pProjCoordSystem, pGeoCoordSystem);
MapPoint pProjectedPoint = GeometryEngine.Instance.ProjectEx(pPoint, pGeoTrans) as MapPoint;
Console.WriteLine(pProjectedPoint.Y);
Console.WriteLine(pProjectedPoint.X); Documentation link is here
... View more
05-24-2025
12:14 PM
|
0
|
0
|
1036
|
|
POST
|
Hi, There is one sample project for VB in Esri Community ArcGIS Pro Samples. Solution is here. Try code below for your functionality: Try 'TRY TO GET THE CENTER SCREEN LOCATION FROM THE ACTIVE VIEW, JUST SHOW THE FORM ON ERROR
Dim areaOfInterest = MapView.Active.Extent
Dim pPoint As MapPoint
pPoint = MapPointBuilderEx.CreateMapPoint((areaOfInterest.XMax - areaOfInterest.XMin) / 2 + areaOfInterest.XMin,
(areaOfInterest.YMax - areaOfInterest.YMin) / 2 + areaOfInterest.YMin, MapView.Active.Map.SpatialReference)
Dim pGeoCoordSystem As SpatialReference
Dim pProjCoordSystem As SpatialReference
Dim pGeoTrans As ProjectionTransformation
pGeoCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(SpatialReferences.WGS84)
pProjCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(102633)
pGeoTrans = ProjectionTransformation.Create(pProjCoordSystem, pGeoCoordSystem)
Dim pProjectedPoint As MapPoint
pProjectedPoint = CType(GeometryEngine.Instance.ProjectEx(pPoint, pGeoTrans), MapPoint)
Console.WriteLine(CStr(pProjectedPoint.Y))
Console.WriteLine(CStr(pProjectedPoint.X))
Catch ex As Exception
'DO NOTHING
End Try As I understand your map spatial reference is esriSRProjCS_NAD1983SPCS_AK3FT. So, instead of creating pProjCoordSystem you can use Map spatial reference
... View more
05-23-2025
01:30 AM
|
0
|
2
|
1107
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 1 | yesterday | |
| 1 | a week ago | |
| 2 | 2 weeks ago | |
| 1 | 10-24-2025 10:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|