public ItemSizeWidth[] GetPossibleSizes(ViewLayoutContext context)
{
if (_lastShape != _ribbon.RibbonShape)
{
switch (_ribbon.RibbonShape)
{
default:
case PaletteRibbonShape.Office2007:
_lastShape = PaletteRibbonShape.Office2007;
_preferredSize = _preferredSize2007;
break;
case PaletteRibbonShape.Office2010:
_lastShape = PaletteRibbonShape.Office2010;
_preferredSize = _preferredSize2010;
break;
}
}
// Return the one possible size allowed
return new ItemSizeWidth[] { new ItemSizeWidth(GroupItemSize.Large, _preferredSize.Width) };
}