Ejemplo n.º 1
0
        public void AddCommand(ToolbarItem command)
        {
            var cmd = command;

            if (cmd == null || cmd.Position == ToolbarPosition.Right)
            {
                RightCommands.Add(command);
            }
            else if (cmd.Position == ToolbarPosition.BottomLeft)
            {
                BottomLeftCommands.Add(command);
            }
            else if (cmd.Position == ToolbarPosition.BottomRight)
            {
                BottomRightCommands.Add(command);
            }
            else
            {
                LeftCommands.Add(command);
            }
        }