|
POST
|
Hi Dylan In this screenshot, I see one issue: In the button element defined in the Config.daml, notice that the className attribute is set to Button1. But in the code snippet you shared above your button class is actually OpenGoogle. So try changing that in the config.daml - to match your button class.
... View more
05-02-2019
03:49 PM
|
1
|
4
|
3983
|
|
POST
|
Hi Dylan, One of the main reasons this happens is if the namespace of the button class (StreetViewButton from your code snippet above) doesn't match the namespace defined in your config.daml or in your add-ins settings. Please check out this topic to see if this could be an issue: ProGuide Diagnosing ArcGIS Pro Add ins · Esri/arcgis-pro-sdk Wiki · GitHub Thanks Uma
... View more
05-02-2019
03:34 PM
|
1
|
7
|
3983
|
|
POST
|
Hi Adam, The initial location issue is a known defect that I can confirm. The development team for this has been notified. I tried your exact code in the 2.4 version of Pro - I am not able to reproduce this issue. The Save item dialog closes for me. Thanks Uma
... View more
05-02-2019
03:24 PM
|
0
|
1
|
801
|
|
POST
|
Hi Tim, I see this issue too using the sample. We will investigate this behavior. Thank you for reporting this! Uma
... View more
05-02-2019
02:24 PM
|
0
|
0
|
1818
|
|
POST
|
Hi Dylan There are a few ways to accomplish this with .NET. One suggestion is posted here on stackoverflow. Code snippet to open a url in a Pro button OnClick method: internal class OpenURL : Button
{
protected override void OnClick()
{
System.Diagnostics.Process.Start("http://google.com");
}
} You can use string interpolation to pass in the points to the string. Thanks Uma
... View more
05-02-2019
02:18 PM
|
1
|
9
|
3983
|
|
POST
|
Hi Tim Gallery items require the image url in the URI format. There is a sample in the community samples repo that show this: Gallery sample Thanks Uma
... View more
05-01-2019
02:42 PM
|
2
|
3
|
2362
|
|
POST
|
Hi The Dockpane class has an OnShow override that can be used to determine when the Dockpane is visible or closed. Here is the method snippet below. The parameter passed to this method will be true if the Dockpane is being opened and it is false when you close the dockpane. protected override void OnShow(bool isVisible)
{
System.Diagnostics.Debug.WriteLine($"Visible: {isVisible}");
} Note: Dock panes are singletons—there is never more than one instance of a particular dock pane—and once created, they are not destroyed until the application is closed. They are only "hidden" when you close it. Thanks Uma
... View more
04-30-2019
10:06 AM
|
2
|
4
|
4120
|
|
POST
|
Hi, In your config.daml, modify the appearsOnAddInTab on the group element to be set to false. <group id="Floodplain_Plotting_Group1" caption="Plot" appearsOnAddInTab="true" keytip="P"> Thanks Uma
... View more
04-26-2019
10:23 AM
|
5
|
1
|
2103
|
|
POST
|
Hi Buttons cannot be hidden at runtime, but the group that holds the button can be hidden by using conditions and states. Thanks Uma
... View more
04-24-2019
08:33 AM
|
0
|
1
|
1853
|
|
POST
|
Hi Fayu I am not able to reproduce this - When I select a layer from the OpenItemDialog (available from MyContent on ArcGIS Online) pDialog.Items is not empty. Can you please provide some information on the content you are trying to access? It is a standalone table? Thanks Uma
... View more
04-23-2019
11:36 AM
|
0
|
1
|
958
|
|
POST
|
Hi Fayu Do you mean Pro’s Map Control? Yes, should be no problem. Thanks Uma
... View more
04-23-2019
09:36 AM
|
0
|
0
|
883
|
|
POST
|
Hi Here is a code snippet to add a feature class in a CAD DWG file - string url = @"E:\Data\CAD\Charlottesville\N1W1.dwg\Polyline"; //FeatureClass of a cad dwg file
Uri uri = new Uri(url);
await QueuedTask.Run(() => LayerFactory.Instance.CreateLayer(uri, MapView.Active.Map)); Thanks Uma
... View more
04-23-2019
08:55 AM
|
0
|
2
|
883
|
|
POST
|
Hi Simon You cannot add raster sublayers (that is, raster layers inside a map service) individually to Pro. This is by-design. Thanks Uma
... View more
04-22-2019
01:21 PM
|
1
|
2
|
1318
|
|
POST
|
You can set this in the XAML for the ProWindow - ShowMinButton="False"
ShowCloseButton="False" ShowMaxRestoreButton="False"
WindowStartupLocation="CenterOwner"
<controls:ProWindow x:Class="ProWindow.ProWindow1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
mc:Ignorable="d"
Title="ProWindow1" Height="300" Width="300"
ShowMinButton="False"
ShowCloseButton="False" ShowMaxRestoreButton="False"
WindowStartupLocation="CenterOwner"
>
... View more
04-22-2019
12:51 PM
|
0
|
1
|
1116
|
|
POST
|
Hi Simon I am able to reproduce this behavior you are seeing. Will investigate and let you know. Thanks Uma
... View more
04-18-2019
01:05 PM
|
0
|
0
|
1318
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM | |
| 1 | 11-20-2024 10:50 AM | |
| 1 | 04-28-2025 03:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|