|
POST
|
Are you referring to this button: If that's the button you're referring to, then there is no way to such a function from your 'Ribbon Button Click', because it's a navigation button that simply takes you back to the previous 'page' (or dockpane in our case). With a 'Ribbon Button Click' there is no page to navigate back to, but with your selection from the 'Modify Feature' dockpane there is a page to get back to:
... View more
05-25-2023
11:49 AM
|
0
|
0
|
1331
|
|
POST
|
You can also search for the videos from Dev Summit 2023 specifically the session: "Intermediate Data Visualization Using Table Controls" You can find the session resources here: Tech Sessions · Esri/arcgis-pro-sdk Wiki (github.com)
... View more
05-24-2023
02:44 PM
|
1
|
0
|
1691
|
|
POST
|
Starting with Release 3.1, you can use the TableView class as described here: ProConcepts Map Exploration · Esri/arcgis-pro-sdk Wiki (github.com) and specifically the SortAscending Method: SortAscending Method (TableView)—ArcGIS Pro The code would look like this: var tv = TableView.Active;
if (tv == null)
return;
// sort the active field descending
if (tv.CanSortDescending)
tv.SortDescending();
// sort the active field ascending
if (tv.CanSortAscending)
tv.SortAscending();
// peform a custom sort programmatically
if (tv.CanCustomSort)
{
// sort fields
var dict = new Dictionary<string, FieldSortInfo>();
dict.Add("STATE_NAME", FieldSortInfo.Asc);
dict.Add("CITY_NAME", FieldSortInfo.Desc);
await tv.SortAsync(dict);
}
// perform a custom sort via the UI
if (tv.CanCustomSort)
tv.CustomSort();
... View more
05-24-2023
02:17 PM
|
1
|
0
|
1703
|
|
POST
|
update from MS: A fix for this issue has been internally implemented and is being prepared for release. We’ll update you once it becomes available for download (should be in 17.6.2)
... View more
05-24-2023
01:06 PM
|
1
|
0
|
6195
|
|
POST
|
You can also use an extension method on the MapView class: AddOverlay to add a Symbol (point, line, polygon) to a MapView's grphic overlay. AddOverlay Method (MappingExtensions)—ArcGIS Pro Here is the documentation on Graphic Overlays for MapView: ProConcepts Map Exploration · Esri/arcgis-pro-sdk Wiki (github.com) private IDisposable _graphic = null; //defined elsewhere
// Add point graphic to the overlay at the center of the mapView
// Note: Run within QueuedTask.Run
_graphic = mapView.AddOverlay(mapView.Extent.Center,
SymbolFactory.Instance.ConstructPointSymbol(
ColorFactory.Instance.RedRGB, 40.0, SimpleMarkerStyle.Star).MakeSymbolReference());
// Note: Update graphic using UpdateOverlay
// mapView.UpdateOverlay(_graphic,...);
_graphic.Dispose(); //Removes the graphic
... View more
05-24-2023
10:58 AM
|
1
|
0
|
946
|
|
POST
|
In order to use Undo/Redo you have to 'save' your edits first. More details are here: ProConcepts Editing · Esri/arcgis-pro-sdk Wiki (github.com) In short these are the relevant methods: Save edits: await Project.Current.SaveEditsAsync(); SaveEditsAsync Discard Edits: await Project.Current.DiscardEditsAsync(); DiscardEditsAsync Has Edits: Project.Current.HasEdits HasEdits
... View more
05-24-2023
07:21 AM
|
0
|
0
|
1224
|
|
POST
|
So apparently the issue has already been reported to Microsoft under a different title: Syncfusion Controls like RibbonWindow and ChromelessWindows no longer rendering in designer preview - Developer Community (visualstudio.com) Here’s a way to try out the fix ahead of time at your own risk, although it’s pretty low risk and easy to undo. You need to be admin on the machine. 1. Find this file in your VS installation directory: Common7\IDE\CommonExtensions\Microsoft\DesignTools\Microsoft.VisualStudio.DesignTools.XamlDesignerHost.pkgdef 2. Open that file in notepad++ 3. Find this text in the file: "Namespace"="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4. Duplicate that line right underneath and change Namespace to DefaultNamespace, so it’ll look like this: "Namespace"="http://schemas.microsoft.com/winfx/2006/xaml/presentation" "DefaultNamespace"="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 5. Save the file 6. From your VS installation directory, run (requires admin): devenv.exe /setup 7. Give it a minute to finish This actually worked for me. Now when you open a XAML file it is actually treated as a XAML file and not as an XML file. Microsoft promised a fix in a 'future' release.
... View more
05-23-2023
07:04 AM
|
2
|
1
|
6221
|
|
POST
|
I tried that as well. Didn't work for me either. i reported the issue on VS Community. I am not holding my breath so: Visual Studio 2022 Designer - Design View doesn't show for User Controls - Developer Community
... View more
05-22-2023
05:34 PM
|
0
|
0
|
6230
|
|
POST
|
I think a 'RowTemplate' does a lot of the items on your punchlist: ProConcepts Editing · Esri/arcgis-pro-sdk Wiki (github.com) Also @GKmieliauskas shows a solution to turn visibility on/off
... View more
05-19-2023
03:11 PM
|
0
|
0
|
2823
|
|
POST
|
i just upgraded to VS 17.6.0 and i am also not able to get the XAML Design View to show up. i only see the XAML source view. So i tried your trick and sure enough your fix worked for me as well. I then closed and reopened the project and poof! - your term 😉 - the Designer View still works. However, i had a second ProWindow control in the same VS project that still didn't work. I suppose i have apply your magic trick on that control as well. If i close VS, then delete the bin and obj folders, and then reopen VS, the Designer View is broken again. I have to apply your magic trick again. It appears that the XAML Design View works fine when i create a new .NET WPF application. I will look into this a bit more.
... View more
05-19-2023
03:05 PM
|
1
|
1
|
6274
|
|
POST
|
You can look at this community sample: arcgis-pro-sdk-community-samples/Map-Authoring/GraphicsLayers at 24c3224cc4566ab69c77b0bff40bff025628a341 · Esri/arcgis-pro-sdk-community-samples · GitHub It contains code to create a graphics layer (see AddGraphicsLayer.cs) and the code to add a point to that graphic layer (see GraphicCreationTools/PointGraphic.cs). The ProConcepts document for graphics layers is here: ProConcepts GraphicsLayers · Esri/arcgis-pro-sdk Wiki (github.com)
... View more
05-19-2023
07:57 AM
|
1
|
0
|
991
|
|
POST
|
Just for others looking for the complete snippet that will allow to manually position the popup window (works for both Show() and ShowDialog()): protected override void OnClick()
{
//already open?
if (_prowindow != null)
return;
// set a fixed offset for the Window on the top/left
double left = 250; //Window's left edge, in relation to the desktop
double top = 150; //Window's top edge, in relation to the desktop
_prowindow = new ProWindow();
_prowindow.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual;
_prowindow.Left = left;
_prowindow.Top = top;
_prowindow.SaveWindowPosition = false;
_prowindow.Owner = FrameworkApplication.Current.MainWindow;
_prowindow.Closed += (o, e) => { _prowindow = null; };
//_prowindow.Show();
//uncomment for modal
_prowindow.ShowDialog();
}
... View more
05-18-2023
03:40 PM
|
0
|
0
|
2486
|
|
POST
|
@JoshuaFlickinger The errors that i encountered were caused by an issue with arcpy when Plugin Datasources were installed unrelated to interference from XTools Pro. My issue has been addressed. As for the issue with XTools Pro interfering with arcpy you need to check with @ShaunWalbridge . My home is the ArcGIS Pro SDK so unfortunately i know little about the issue at hand.
... View more
05-16-2023
03:09 PM
|
0
|
2
|
4365
|
|
POST
|
Are you looking for this: in essence you are changing the transparency of the text color
... View more
05-16-2023
11:44 AM
|
0
|
0
|
2387
|
|
POST
|
In order to change transparency, you have to access the CIM (Cartographic Information Model) definition of the text graphic (via GetDefinition), change the CIM definition, and finally set the updated definition (via SetDefinition). This will turn the text graphic symbol's transparency (name of graphic is TestText) to transparent (value of 100) and non-transparent (value of 0): protected override async void OnClick()
{
var myLayoutView = LayoutView.Active;
if (myLayoutView == null) return;
await QueuedTask.Run(() =>
{
Layout layout = myLayoutView.Layout;
if (layout == null) return;
TextElement txtElm = layout.FindElement("TestText") as TextElement;
if (txtElm == null) return;
// Change Transparency
var cimSym = txtElm.GetDefinition();
cimSym.Visible = true;
var cimTextGraphicBase = (cimSym as CIMGraphicElement).Graphic;
if (cimTextGraphicBase != null)
{
cimTextGraphicBase.Transparency = 100;
txtElm.SetDefinition(cimSym);
}
});
}
... View more
05-15-2023
10:05 AM
|
2
|
3
|
2415
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-29-2025 10:48 AM | |
| 1 | 05-24-2021 09:04 AM | |
| 1 | 12-03-2020 08:44 AM | |
| 1 | 10-07-2025 07:27 AM | |
| 2 | 12-29-2025 10:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-30-2026
03:25 PM
|