Hi - I'm using condition="esri_mapping_layoutPane" in the Config.daml file to have a button be enabled only in layout mode. This was working until I recently upgraded ArcPro to 2.7.1. Has anything changed to make this not work anymore? the button is always disabled now
<button id="BaseMapProModule_BtnMapDoc" caption="Map Doc" className="BtnMapDoc" loadOnClick="true" smallImage="Images\GenericButtonBlue16.png" largeImage="Images\GenericButtonBlue32.png" condition="esri_mapping_layoutPane">
Previously, Dockpanes could be established with a condition so that their content only appears when the condition is satisfied. This has now been deprecated.
You can now use WPF Visibility attributes to display or hide controls in the dockpane. Here are couple of samples in the arcgis-pro-sdk-community-samples repo that implement this.