コード例 #1
0
        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);
        }
コード例 #2
0
 internal void RegisterGroup(MetaActionGroup group)
 {
     groups.Add(group);
 }
コード例 #3
0
 public MetaActionGroupGenerator(ItemsControl groupHost, MetaActionGroup group)
 {
     this.groupHost = groupHost;
     this.group     = group;
 }