The <xref:System.Windows.Controls.MenuScrollingVisibilityConverter> determines whether a menu should display the repeat buttons when a menu has too many items to fit on the screen at once. Use the converter with a <xref:System.Windows.Data.MultiBinding> that has four bindings. The four bindings should be to properties of the parent <xref:System.Windows.Controls.ScrollViewer>: If the menu items are organized vertically (which is the default for menus), bind to <xref:System.Windows.Controls.ScrollViewer.ComputedVerticalScrollBarVisibility%2A>, <xref:System.Windows.Controls.ScrollViewer.VerticalOffset%2A>, <xref:System.Windows.Controls.ScrollViewer.ExtentHeight%2A>, and <xref:System.Windows.Controls.ScrollViewer.ViewportHeight%2A>. If the menu items are organized horizontally, bind to <xref:System.Windows.Controls.ScrollViewer.ComputedHorizontalScrollBarVisibility%2A>, <xref:System.Windows.Controls.ScrollViewer.HorizontalOffset%2A>, <xref:System.Windows.Controls.ScrollViewer.ExtentWidth%2A>, and <xref:System.Windows.Controls.ScrollViewer.ViewportWidth%2A>.
0 commit comments