Washington (CNN) Former CIA Director John Brennan is "deeply saddened and angered" at President Donald Trump after the commander in chief addressed CIA employees at their headquarters in Langley, Virginia, on Saturday, Brennan's former deputy chief of staff says.

Trump spent much of his speech -- which he gave in front of a memorial wall that honors the 117 CIA officers who have fallen in the line of duty -- focusing on the size of the crowd size at his inauguration, his appearance on magazine covers and saying he "has a running war with the media."

"Former CIA Director Brennan is deeply saddened and angered at Donald Trump's despicable display of self-aggrandizement in front of CIA's Memorial Wall of Agency heroes," Nick Shapiro said in a statement. "Brennan says that Trump should be ashamed of himself."

One source who attended Trump's appearance said many people there were troubled by the political aspect of the remarks, in which the president speculated about how many people in the room may have voted for him.

"We are not political in that way," the source said. "Talking about whether we voted for Trump is offensive and foreign to us by the president ... Many people felt used and awkward throughout. Of course there was applause, but it was uncomfortable."

Barack Obama waves as he boards a military helicopter to depart Washington on Friday, January 20, following the presidential inauguration of Donald Trump. Post-presidency , Obama said he wants to begin writing a book with the help of his White House speechwriter, Cody Keenan. He's also named a senior adviser and a chief of staff for his private office, and on Friday a website that allows users to inquire about his upcoming speaking engagements went live.

The White House is seen through morning fog on Wednesday, January 18.

The White House is seen through morning fog on Wednesday, January 18.

Sen. Chris Coons meets with Nikki Haley, President Donald Trump's pick for US ambassador to the United Nations, in Washington on Tuesday, January 17.

Sen. Chris Coons meets with Nikki Haley, President Donald Trump's pick for US ambassador to the United Nations, in Washington on Tuesday, January 17.

Donald Trump and his wife, Melania, visit the Lincoln Memorial on Thursday, January 19.

Donald Trump and his wife, Melania, visit the Lincoln Memorial on Thursday, January 19.

Ben Carson, President Donald Trump's pick to lead the Department of Housing and Urban Development, speaks on his cell phone during the Traditional Values Coalition's Christian Inaugural Gala in Washington on Thursday, January 19.

Ben Carson, President Donald Trump's pick to lead the Department of Housing and Urban Development, speaks on his cell phone during the Traditional Values Coalition's Christian Inaugural Gala in Washington on Thursday, January 19.

Betsy DeVos, President Donald Trump's pick to lead the Education Department, attends her confirmation hearing on Tuesday, January 17. DeVos, who has spent millions to advance conservative causes in her home state of Michigan and across the country, was questioned by Democratic senators who believe she is not qualified to lead the nation's education system.

Donald Trump shakes hands with Martin Luther King III after their meeting at Trump Tower in New York on Monday, January 16. Trump called on Americans to observe Martin Luther King Jr. Day and "celebrate all of the many wonderful things that he stood for."

Hillary Clinton, who was the 2016 Democratic presidential nominee, smiles before the start of Donald Trump's presidential inauguration in Washington on Friday, January 20. Around her are former President Bill Clinton, former President Jimmy Carter and his wife, Rosalynn, as well as former President George W. Bush and his wife, Laura.

Hillary Clinton, who was the 2016 Democratic presidential nominee, smiles before the start of Donald Trump's presidential inauguration in Washington on Friday, January 20. Around her are former President Bill Clinton, former President Jimmy Carter and his wife, Rosalynn, as well as former President George W. Bush and his wife, Laura.

Donald Trump holds the hand of Kellyanne Conway, his senior adviser, as she takes a bow during a VIP reception and dinner with donors in Washington on Thursday, January 19, the night before Trump's presidential inauguration.

Donald Trump holds the hand of Kellyanne Conway, his senior adviser, as she takes a bow during a VIP reception and dinner with donors in Washington on Thursday, January 19, the night before Trump's presidential inauguration.

Rick Perry, President Trump's nominee for secretary of energy, is sworn in before his confirmation hearing in on Thursday, January 19. Perry, who once felt the Department of Energy should be shut down, said at the hearing that he regrets calling for the agency's elimination.

A protester is carried off by authorities prior to the start of Donald Trump's presidential inauguration in Washington on Friday, January 20.

A protester is carried off by authorities prior to the start of Donald Trump's presidential inauguration in Washington on Friday, January 20.

President Donald Trump and his wife, First Lady Melania Trump, kiss and dance on stage during A Salute To Our Armed Services Inaugural Ball at the National Building Museum on Friday, January 20, in Washington, DC.

President Donald Trump and his wife, First Lady Melania Trump, kiss and dance on stage during A Salute To Our Armed Services Inaugural Ball at the National Building Museum on Friday, January 20, in Washington, DC.

Then-President Barack Obama and his wife, Michelle, walk with a group of children at the "Jobs Have Priority" Naylor Road Family Shelter in Washington on Monday, January 16 -- Martin Luther King Jr. Day. The Obamas donated a swingset formerly used by their two daughters, Sasha and Malia, to the DC shelter.

Sen. Sheldon Whitehouse points to a chart as he questions Scott Pruitt, President Donald Trump's pick to lead the Environmental Protection Agency, during Pruitt's confirmation hearing on Wednesday, January 18. Although Pruitt broke with Trump and said he doesn't believe climate change is a hoax, he did not indicate he would take swift action to address environmental issues that may contribute to climate change.

Tom Price, President Donald Trump's nominee to lead the Department of Health and Human Services, pauses during his confirmation hearing on Wednesday, January 18. During his four-hour hearing, Price defended himself from accusations of inappropriate financial investments and fielded plenty of questions regarding his views on the health-care system.

Photos of Barack Obama and his family, which lined walls in the West Wing of the White House, are removed on Thursday, January 19. Obama's presidency came to an end the following day, when Donald Trump was sworn in as the 45th president. The Obamas are moving to a house in Washington's Kalorama neighborhood.

Donald Trump arrives on the West Front of the Capitol prior to being sworn-in as president on Friday, January 20.

Donald Trump arrives on the West Front of the Capitol prior to being sworn-in as president on Friday, January 20.

Trump supporters listen during the inauguration in Washington on Friday, January 20.

Trump supporters listen during the inauguration in Washington on Friday, January 20.

Protesters stream onto Independence Avenue at the Women's March on Washington during the first full day of Donald Trump's presidency, Saturday, January 21, in Washington DC.

Donald Trump is sworn in as the 45th President of the United States as his wife, Melania, looks on during the inauguration ceremony in Washington on Friday, January 20. He used a family bible and one that belonged to Abraham Lincoln.

Trump's visit, his first official one since becoming President, was seen as part of a bid to mend fences after he strained relations with intelligence officials by repeatedly casting doubt on their assessment that Russia had carried out cyberattacks during the campaign. He also suggested that the intelligence community was leaking information about the investigation to the press, taking to Twitter to slam Brennan, a 25-year veteran of the agency.

The President sought to send a message of support to the intelligence community following the turbulent transition, telling the 300 employees in attendance, "I am so behind you."

"I am with you 1,000%," Trump said after receiving intelligence briefings from top agency officials.

"There is nobody that feels stronger about the intelligence community and the CIA than Donald Trump," he said to applause, adding at the end of his remarks, "I love you. I respect you. We're going to start winning again, and you're going to be leading the charge."

Trump blamed the "dishonest" media for the perceived rift with the intelligence community.

Many observers had commented on the unmatched level of skepticism Trump had directed at the US intelligence apparatus, and other speakers Saturday addressed the relationship between presidents and the intelligence community.

"CIA's relationship with the president has been essential to our nation's strength and security," acting director Meroe Park said prior to introducing Trump and Vice President Mike Pence.

JUST WATCHED Trump visits CIA on day two of presidency Replay More Videos ... MUST WATCH Trump visits CIA on day two of presidency 03:53

"I can assure you this new President and our entire team recognizes and appreciates the sacrifices of all of the men and women of the intelligence community of the United States of America," Pence told the assembled group.

Trump echoed Pence's praise but drew the ire of Brennan as well as Democrats for using the platform to address political issues entirely unrelated to the CIA.

The backlash from a agency veteran like Brennan could undermine Trump's latest push to foster a strong relationship between the White House and the intelligence community.

The President did take a moment to acknowledge the memorial behind him, saying, "The wall behind me is very, very special."

Trump also spoke about his desire to "eradicate radical Islamic terrorism ... off the face of the earth. This is evil."

And he said about Iraq, "We should have kept the oil. Maybe we'll have another chance."

But Trump's off-the-cuff remarks veered into political territory at times, something not typically seen in addresses to intelligence professionals who pride themselves on being non-partisan and which drew a quick attack from Democrats.

The CIA audience was separated into two sections: a main area of all agency staff and a separate section directly in front of the stage that consisted of senior agency leadership, including agents. During Trump's address, the senior leadership stood the entire time. When Trump began drifting into political topics, the main crowd broke into cheers and applause at points. The senior leadership remained stoic, and did not applaud the political lines.

The president also repeatedly slammed the media, saying, "I have a running war with the media" and accusing news organizations of misrepresenting the size of the crowds at his inauguration speech on Friday.

He talked about the number of times he has been on the cover of Time magazine.

The ranking Democrat on the House Intelligence Committee issued a statement shortly after Trump's visit ripping the new president.

"While standing in front of the stars representing CIA personnel who lost their lives in the service of their country -- hallowed ground -- Trump gave little more than a perfunctory acknowledgment of their service and sacrifice," Rep. Adam Schiff said, adding that Trump "meandered through a variety of other topics unrelated to intelligence."

"He will need to do more than use the agency memorial as a backdrop if he wants to earn the respect of the men and women who provide the best intelligence in the world," Schiff added.

The visit comes amid questions regarding the status of Trump's choice to run the agency, Rep. Mike Pompeo.

The CIA, currently being led by Park, is lacking a permanent chief as the Senate has delayed Pompeo's confirmation vote until Monday, with Democrats citing concerns about his positions on surveillance and other issues.

Pompeo, who was at the CIA with Trump, has encountered some controversy after he submitted responses to a Senate questionnaire where he said he would consider bringing back waterboarding and other enhanced interrogation measures under certain circumstances.

JUST WATCHED Nunes: Pompeo metadata issue will not be revisited Replay More Videos ... MUST WATCH Nunes: Pompeo metadata issue will not be revisited 00:54

Republicans have slammed the delay, with Sen. Tom Cotton of Arkansas issuing a statement, saying, "The Democrats are obstructing the nomination of Mike Pompeo as CIA director for no good reason."

"I hope the jihadists take the weekend off from trying to kill Americans," Cotton added.