Activate/Deactivate a state - to modify a condition
// Define the condition in the DAML file based on the state
if (activate)
FrameworkApplication.State.Activate("someState");
else
FrameworkApplication.State.Deactivate("someState");
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.