public IMetaActionGroupGenerator Create(MetaActionGroup group) { if (groupHost is ToolBar) { return(new MetaActionGroupGenerator <Button>(groupHost, group)); } if (groupHost is MenuItem) { return(new MetaActionGroupGenerator <MenuItem>(groupHost, group)); } throw new NotSupportedException("Not supproted host type: " + groupHost.GetType().Name); }
internal void RegisterGroup(MetaActionGroup group) { groups.Add(group); }
public MetaActionGroupGenerator(ItemsControl groupHost, MetaActionGroup group) { this.groupHost = groupHost; this.group = group; }