Hi,
im using a split button to show different kind of menus in my ribbongroup.
Is it possible to get a vertical scrollbar for the buttons in the menu? I need this because i have limited the height of the menu to 50. Thats because i only want to show the first 2 or 3 items at the beginning and i want the rest of the menuitems (buttons) to be scrollable!
here is some easy sample code:
<ribbon:SplitButton Name="splitti" Label="Split-Button">
<ribbon:Menu Height="50">
<ScrollViewer>
<StackPanel>
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
</StackPanel>
</ScrollViewer>
</ribbon:Menu>
</ribbon:SplitButton>
what happens now is that the first buttons are shown as well as the scrollbar but the scrollbar is disabled.
any idea? am i mixing something up?
Thx from Germany
SLimke
im using a split button to show different kind of menus in my ribbongroup.
Is it possible to get a vertical scrollbar for the buttons in the menu? I need this because i have limited the height of the menu to 50. Thats because i only want to show the first 2 or 3 items at the beginning and i want the rest of the menuitems (buttons) to be scrollable!
here is some easy sample code:
<ribbon:SplitButton Name="splitti" Label="Split-Button">
<ribbon:Menu Height="50">
<ScrollViewer>
<StackPanel>
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
<ribbon:Button Label="Paste" KeyTipAccessText="P" />
<ribbon:Button Label="Paste Special" KeyTipAccessText="S" />
<ribbon:Button Label="Paste Hyperlink" KeyTipAccessText="H" />
</StackPanel>
</ScrollViewer>
</ribbon:Menu>
</ribbon:SplitButton>
what happens now is that the first buttons are shown as well as the scrollbar but the scrollbar is disabled.
any idea? am i mixing something up?
Thx from Germany
SLimke