|
POST
|
Hi, Are you trying to implement reports within a custom app you've built with ArcGIS Runtime SDK for .NET, or within ArcGIS Pro?
... View more
08-12-2021
04:23 PM
|
1
|
0
|
1933
|
|
POST
|
Not at all, glad you raised this - there's not a lot of doc on it, so it's good to establish a consistent pattern in all our public sample code. It turns out we've had the workaround in our regular samples viewer for some time but hadn't applied it to the toolkit samples. We've done that now too. https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/74397e25e1fb5bad16cb4a8ffca6fa066c9b3292/src/Forms/UWP/App.xaml.cs#L65 https://github.com/Esri/arcgis-toolkit-dotnet/blob/7ee28956aed504aeabc842ea697cca6e2bbec283/src/Samples/Toolkit.Samples.Forms/Toolkit.Samples.Forms.UWP/App.xaml.cs#L56 Recently also found this blog post: https://tomsoderling.github.io/what-every-Xamarin.Froms-developer-needs-to-know-about-UWP/
... View more
08-11-2021
05:33 PM
|
0
|
0
|
9085
|
|
POST
|
That's great news. It shouldn't need to be an empty map package, but that's a cleaner way to do it. Ideally the spatial references of your data, map package (local map service), and mapview are the same to avoid the overhead of any dynamic reprojection. But the local server will reproject on-the-fly if needed.
... View more
08-11-2021
12:08 PM
|
1
|
0
|
2470
|
|
POST
|
Hi, For raster datasets in ECW format, it is still necessary to use the Local Server component because it's not one of the formats supported for direct read by the API. Local Server does not provide an equivalent ImageServer endpoint, therefore to access raster dataset via Local Server you can use the dynamic workspace approach shown in this sample: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/v100.7.0/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Local%20Server/DynamicWorkspaceRaster.
... View more
08-10-2021
11:28 AM
|
1
|
0
|
2492
|
|
POST
|
@johnselkirkssp @PaulFarrow Can you try this? // Work around for .NET native compilation issue where ArcGIS Runtime assemblies
// get optimized away: Explicitly define the assemblies that are used.
List<Assembly> assembliesToInclude = new List<Assembly>();
assembliesToInclude.Add(typeof(Esri.ArcGISRuntime.UI.Controls.MapView).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(Esri.ArcGISRuntime.Toolkit.Xamarin.Forms.SymbolDisplay).GetTypeInfo().Assembly);
Xamarin.Forms.Forms.Init(e, assembliesToInclude); --- 8/11/2021 Edited the code to remove the reference to Map, leaving just the references that contain customer renderers.
... View more
08-09-2021
01:11 PM
|
0
|
2
|
9128
|
|
POST
|
John, Paul, If you run the UWP Toolkit Samples in Release mode do the LayerLegend/Legend samples display legend images? Thanks
... View more
08-08-2021
01:57 PM
|
0
|
1
|
9151
|
|
POST
|
It sounds like it might represent a form of symbol to style a graphic in a graphics overlay? You could use RenderTagetBitmap to render an image and apply that via a PictureMarkerSymbol. Here's some code that creates a UniqueValueRenderer from a series of UIElements rendered using RenderTargetBitmap: private async Task CreatePictureMarkerSymbols()
{
_strobeCanvas = new Canvas();
Ellipse ellipse = new Ellipse()
{
Height = 40,
Width = 40,
IsHitTestVisible = false,
RenderTransform = new ScaleTransform(),
Fill = new RadialGradientBrush()
{
GradientStops = new GradientStopCollection(5)
{
new GradientStop(Color.FromArgb(0,255, 0, 0),0),
new GradientStop(Color.FromArgb(255,255, 0, 0),0.25),
new GradientStop(Color.FromArgb(0,255, 0, 0),0.5),
new GradientStop(Color.FromArgb(255,255, 0, 0),0.75),
new GradientStop(Color.FromArgb(0,255, 0, 0),1),
}
}
};
_strobeCanvas.Children.Add(ellipse);
for (int i = 1; i <= _numberOfPictureMarkerSymbols; i++)
{
// Scale up the Ellipse
double increment = Convert.ToDouble(i) / 5;
Transform scaleTransform = new ScaleTransform(increment, increment);
double scaleTransformOrigin = 0;
ellipse.Opacity -= _opacityStep;
ellipse.RenderTransform = scaleTransform;
ellipse.RenderTransformOrigin = new Point(scaleTransformOrigin, scaleTransformOrigin);
_strobeCanvas.RenderTransform = scaleTransform;
_strobeCanvas.RenderTransformOrigin = new Point(scaleTransformOrigin, scaleTransformOrigin);
_strobeCanvas.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
_strobeCanvas.Arrange(new Rect(ellipse.DesiredSize));
Rect bounds = VisualTreeHelper.GetContentBounds(ellipse);
bounds.Transform(ellipse.RenderTransform.Value);
var dpiXProperty = typeof(SystemParameters).GetProperty("DpiX", BindingFlags.NonPublic | BindingFlags.Static);
var dpiX = (int)dpiXProperty.GetValue(null, null);
double dpi = Convert.ToDouble(dpiX);
// Create a new RenderTargetBitmap to render the ellipse
RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(
(Int32)(bounds.Width * dpi / 96.0),
(Int32)(bounds.Height * dpi / 96.0),
dpi,
dpi,
PixelFormats.Pbgra32);
// Setup the drawing context
DrawingVisual drawingVisual = new DrawingVisual();
using (DrawingContext drawingContext = drawingVisual.RenderOpen())
{
VisualBrush visualBrush = new VisualBrush(ellipse);
drawingContext.DrawRectangle(visualBrush, pen: null, rectangle: new Rect(new Point(), bounds.Size));
}
// Render the visual element
renderTargetBitmap.Render(drawingVisual);
// Use a PngBitmapEncoder to retrieve the image
PngBitmapEncoder pngBitmapEncoder = new PngBitmapEncoder();
pngBitmapEncoder.Frames.Add(BitmapFrame.Create(source: renderTargetBitmap));
using (var stream = new MemoryStream())
{
pngBitmapEncoder.Save(stream);
stream.Seek(0, SeekOrigin.Begin);
// Create a new PictureMarkerSymbol and set the Source
PictureMarkerSymbol pms = await PictureMarkerSymbol.CreateAsync(stream);
// Create a new UniqueValueInfo class for this image instance
UniqueValue strobeUniqueValueInfo = new UniqueValue()
{
Symbol = pms,
};
// Add the UniqueValueInfo to the UniqueValueRenderer
strobeUniqueValueInfo.Values.Add(i);
_strobeUniqueValueRenderer.UniqueValues.Add(strobeUniqueValueInfo);
}
}
// Set the UniqueValueRenderer field
_strobeUniqueValueRenderer.FieldNames.Add(_strobeField);
} Alternatively, if it's one or more symbols defined in XAML and you are looking for a longer term solution and vectorized rendering then you could look into converting the XAML to SVG and importing the SVG into ArcGIS Pro as a symbol layer for a mobile style which you can use in ArcGIS Runtime. Resources: Read symbols from a mobile style: https://developers.arcgis.com/net/wpf/sample-code/read-symbols-from-mobile-style/ Symbol editor demo showcasing mobile style and multi layer symbol editing: https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/SymbolEditor
... View more
08-03-2021
03:33 PM
|
0
|
0
|
1716
|
|
POST
|
A recording would really help us understand what you're seeing. If you're not able to upload here, please share it with me via [email protected]. We don't have a public link for this yet since it's just in triage at this stage - if it turns out to be an issue in the cache implementation that we need to resolve then we can share a public bug reference. Thanks
... View more
07-30-2021
08:51 AM
|
0
|
0
|
4372
|
|
POST
|
Hi, I've added an issue to our backlog to investigate and attempt to identify what might cause this issue. Thanks
... View more
07-29-2021
10:58 AM
|
1
|
2
|
4388
|
|
POST
|
A couple of options for resolving this: Reference the Esri.ArcGISRuntime.WPF NuGet package from your application project which will ensure the appropriate components are copied to the output folder. Set the ArcGISRuntimeEnvironment.InstallPath Property
... View more
07-27-2021
04:47 PM
|
0
|
0
|
3260
|
|
POST
|
ArcGIS Runtime doesn't directly support SVG as a marker symbol (supported formats are BMP, GIF, ICO, JPEG, and PNG). You could explore converting the SVG to another format, or even perhaps export to XAML and use RenderTargetBitmap to render the icon in one of the supported formats. ArcGIS Runtime does support vectorized rendering via the Cartographic Information Model (CIM) specification. If you have access to ArcGIS Pro, you can import the SVG as a marker symbol layer, put your new symbol in a mobile style file, and use that mobile style in ArcGIS Runtime. This "Symbol Editor" demo shows how to use the style file in ArcGIS Runtime: https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/SymbolEditor.
... View more
07-22-2021
05:09 PM
|
0
|
0
|
2236
|
|
POST
|
In ArcGIS Runtime most layer types that you add to the operational layers collection will re-project on-the-fly, either ArcGIS Runtime performs the reprojection or the reprojection may be done server-side in the case of map image layers (including from Local Server). But it is good practice to avoid having layers with different spatial references since reprojection inevitably incurs an overhead somewhere. Information about the ability of specific layer types to be re-projected is included in the API reference: https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_Mapping_Layer.htm
... View more
07-21-2021
02:34 PM
|
1
|
0
|
3744
|
|
POST
|
You need to create an ArcGISMapImageLayer from the LocalMapService then add that layer to the Map.OperationalLayers collection. Also, you should either await the layer's .LoadAsync method, or handle the LoadStatusChanged event to check for any errors. The following resources will help: https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_Mapping_ArcGISMapImageLayer.htm https://developers.arcgis.com/net/wpf/sample-code/local-server-map-image-layer/ https://developers.arcgis.com/net/local-server/using-local-server-services/
... View more
07-19-2021
10:59 AM
|
1
|
0
|
3753
|
|
POST
|
Can you also share the contents of the csproj file?
... View more
07-19-2021
10:37 AM
|
0
|
1
|
3313
|
|
POST
|
Can you provide more detail about your project/application type or even attach a small repro project? Deployment info for .NET Framework and .NET Core/.NET is available here, but if you find it's insufficient we'd love to enhance it.
... View more
07-19-2021
09:06 AM
|
0
|
1
|
3317
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2026 05:04 AM | |
| 1 | 02-20-2024 07:02 AM | |
| 1 | 01-19-2026 06:44 AM | |
| 1 | 12-10-2025 07:16 AM | |
| 1 | 11-21-2025 08:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|