public static IActionView CreateDropDownActionView() { return(new StandardWinFormsActionView( delegate(IActionViewContext context) { DropDownToolbarItem item = new DropDownToolbarItem((IDropDownAction)context.Action, context.IconSize); context.IconSizeChanged += delegate { item.IconSize = context.IconSize; }; return item; })); }
public static IActionView CreateDropDownActionView() { return new StandardWinFormsActionView( delegate(IActionViewContext context) { DropDownToolbarItem item = new DropDownToolbarItem((IDropDownAction) context.Action, context.IconSize); context.IconSizeChanged += delegate { item.IconSize = context.IconSize; }; return item; }); }