How to do runtime cusomization of Annotation Toolbar on Windows Mobile?

Question:

I want to allow the user to customize the Annotation toolbar in PDFView. The User should be able to define which tools should be enabled or disabled from certain option menu.

Could you give us a hint?

Answer:

The items in the Annotation toolbar are currently decided based on size and importance ranking. In order to change this, the AnnotationToolbar.xaml.cs would have to be changed, together with AnnotationToolbarBase.cs.

The logic for figuring out what buttons to show is in AnnotationToolbarBase.AnnotationToolbar_SizeChanged. But instead of looking at the ranking, you would want to look at the settings to select buttons.