Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
660
unable to cancel UltraToolBarsManager Navigation
posted

How do you cancel navigation of the ribbon?  I have a grid on with edits pending and I want to prevent navigation with the ribbon.  Other than disabling the ribbon, I have not been able to prevent the icons on the ribbon from changing with either a shortcut or a mouse input.  I can prevent the tool change from running any code  but then the ribbon selection is out of synch with the app.   I have checked that Infragistics.Win.UltraWinToolbars.ToolbarEventIds.BeforeNavigation is enabled but it never fires.  At this point, I am trying all of the before events but I can still change the tab within the ribbon.  Here is the code of interest.

Thanks,

 

Private Sub UltraToolbarsManager1_BeforeNavigation(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeNavigationEventArgs) Handles UltraToolbarsManager1.BeforeNavigation

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeToolActivate(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.CancelableToolEventArgs) Handles UltraToolbarsManager1.BeforeToolActivate

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeRibbonTabDropDown(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeRibbonTabDropDownEventArgs) Handles UltraToolbarsManager1.BeforeRibbonTabDropDown

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeShortcutKeyProcessed(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeShortcutKeyProcessedEventArgs) Handles UltraToolbarsManager1.BeforeShortcutKeyProcessed

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeRibbonTabSelected(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeRibbonTabSelectedEventArgs) Handles UltraToolbarsManager1.BeforeRibbonTabSelected

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeTaskPaneToolSelected(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeTaskPaneToolSelectedEventArgs) Handles UltraToolbarsManager1.BeforeTaskPaneToolSelected

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeRibbonGroupDropDown(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeRibbonGroupDropDownEventArgs) Handles UltraToolbarsManager1.BeforeRibbonGroupDropDown

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeToolEnterEditMode(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeToolEnterEditModeEventArgs) Handles UltraToolbarsManager1.BeforeToolEnterEditMode

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeToolDropdown(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeToolDropdownEventArgs) Handles UltraToolbarsManager1.BeforeToolDropdown

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeToolbarListDropdown(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeToolbarListDropdownEventArgs) Handles UltraToolbarsManager1.BeforeToolbarListDropdown

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeApplicationMenuDropDown(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles UltraToolbarsManager1.BeforeApplicationMenuDropDown

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeToolbarReset(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.CancelableToolbarEventArgs) Handles UltraToolbarsManager1.BeforeToolbarReset

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeMiniToolbarShown(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeMiniToolbarShownEventArgs) Handles UltraToolbarsManager1.BeforeMiniToolbarShown

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeDisplayMoreItemsDialog(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.CancelableToolEventArgs) Handles UltraToolbarsManager1.BeforeDisplayMoreItemsDialog

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeDisplayCustomizeDialog(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.BeforeDisplayCustomizeDialogEventArgs) Handles UltraToolbarsManager1.BeforeDisplayCustomizeDialog

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_BeforeComponentReset(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles UltraToolbarsManager1.BeforeComponentReset

e.Cancel =

True

 

End Sub

 

Private Sub UltraToolbarsManager1_ToolKeyDown(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolKeyEventArgs) Handles UltraToolbarsManager1.ToolKeyDown

e.SuppressKeyPress =

True

 

End Sub

Parents Reply Children
No Data