public int AddFlyoutCommand(IFlyoutGroup flyoutGroup, string guid, string name, string hint, int imageListIndex, Type commandType) { var flyoutCallbackFunc = $"{callbackMethodName}({guid})"; var flyoutEnableFunc = $"{enableMethodName}({guid})"; int index = flyoutGroup.AddCommandItem(name, hint, imageListIndex, flyoutCallbackFunc, flyoutEnableFunc); if (!CommandInstances.ContainsKey(guid) && Container != null) { using (var scope = Container.BeginLifetimeScope()) { CommandInstances.Add(guid, scope.Resolve(commandType)); } } return(index); }
public IFlyoutGroupObject(IFlyoutGroup IFlyoutGroupinstance) { IFlyoutGroupInstance = IFlyoutGroupinstance; }