Open a custom Options property sheet

181
1
12-15-2021 01:24 PM
AbelPerez
Occasional Contributor III

In my AddIn I have successfully added a property sheet to add to the Options in the Backstage. Now I am trying to figure out how to open to that property sheet from a button in my Toolbar. I have tried almost every type of ID I can think of an it doesnt do anything which means i am not using the correct call or the correct id.

Friend Class ExtBtnOptions
    Inherits Button

    Protected Overrides Sub OnClick()
        Try
            ''Opens the Backstage to the "About ArcGIS Pro" tab.
            'FrameworkApplication.OpenBackstage("esri_core_aboutTab") <-- this works

            'Opens the Backstage to the "AA Analyst" options property sheet in the "Options" tab.
            FrameworkApplication.OpenBackstage("MyCompany_MyGroup_MyAddIn_ExtPshOptions")
        Catch ex As Exception
            MessageBox.Show(ex.Message, "Exception", MessageBoxButton.OK, MessageBoxImage.Error)
        End Try
    End Sub
End Class

 

Tags (3)
0 Kudos
1 Reply
AbelPerez
Occasional Contributor III
0 Kudos