I have a DockPane with several controls and I need to change the visibility based on the active Map
For example I have a button "Import From Map". If there is no active view that is a map then I want to hide these controls, otherwise i want to display the controls.
I looked at the community samples. ProceduralSymbolLayersWithRulePackages and ProceduralSymbolLayersWithRulePackages. Ive also watched the ESRI video on MVVM ArcGIS Pro SDK for .NET: UI Design and MVVM - YouTube and searched on geonet. I'm still not getting it.
I know I have to setup my control XAML with the binding Visibility="{Binding ControlVisible}" and then that property has to be developed. How do i subscribe to the Pro events so that it will tell my property that the active view has changed and thus the controls need updating? I just cant seem to connect the dots.