When Barack Obama took the oath of office as president in 2009, George W. Bush wished him well and left the political stage, determined to never publicly criticize his successor. It is a vow he kept for the entire eight years of Obama's presidency. Indeed, Bush has given only one political speech since leaving office -- and that was for his brother Jeb in 2016.

Even when Obama attacked him repeatedly from the presidential bully pulpit and reversed many of his policies, Bush kept silent. "I don't think it's good for the country to have a former president undermine a current president," he said. "I want the president to succeed. ... He deserves my silence." Bush did it not simply as a courtesy. He understood better than almost anyone the incredible pressures of the presidency and felt it was his moral duty not to make the job any harder. So, he adhered to the standard of grace and decency to which all former presidents should aspire.

For a while it seemed that Obama -- the beneficiary of Bush's grace and decency -- would follow the 43rd president's example. But a little more than 18 months after leaving office, Obama has apparently decided that he is too important to stay on the sidelines.

Obama broke his silence in a speech to students at the University of Illinois at Urbana-Champaign, where he declared that he had fully intended "on following a wise American tradition of ex-presidents gracefully exiting the political stage" but changed his mind because "this is one of those pivotal moments when every one of us as citizens of the United States need to determine just who it is that we are." (With all due respect, this is exactly how many conservatives felt about his time in office).

If Obama were really concerned that Trump is behaving in a manner beneath the dignity of his office, then the answer is to set a better example for presidential behavior -- not join him.

Rather than maintain even some semblance of presidential dignity -- rallying Democrats around a set of principles without attacking the sitting president -- Obama launched into an unrestrained, full-frontal assault on his successor. President Trump, Obama warned, is a "threat to our democracy" who rose to power by "tapping into America's dark history of racial and ethnic and religious division." The former president castigated not just Trump but all Republicans. "The politics of division and resentment and paranoia has unfortunately found a home in the Republican party," he declared. Republicans are "subsidizing corporate polluters," "weakening worker protections," "shrinking the safety net," "attack[ing] voting rights" and "cozying up to Russia" -- all while campaigning on an "appeal to racial nationalism that's barely veiled."

It was the most hyperpartisan speech delivered by a former president in modern memory. If Obama were really concerned that Trump is behaving in a manner beneath the dignity of his office, then the answer is to set a better example for presidential behavior -- not join him.

Moreover, Obama's charge that racist dog whistles put Trump in the White House is a calumny against the millions of decent, patriotic Americans who voted for the president. If all these Trump voters are driven by racism, as Obama declares, then why did so many of them vote for Obama? The American National Election Study found that 13 percent of Trump voters in 2016 backed Obama in 2012. A Post analysis after the 2016 election found that, of the nearly 700 counties that twice voted for Obama, one-third went for Trump.

These Obama-Trump voters are not racists. They are largely working-class voters -- both white and minority -- who are struggling with factories closing, jobs leaving and an opioid epidemic that is destroying their families and communities. They bought into Obama's promise of hope and change but never got what they were promised -- so they decided to give Trump a chance.

And their bet has paid off. Under Trump, the economy is finally improving for many of these forgotten Americans. Wages are rising at the fastest pace in nine years. Consumer confidence is at the highest level since 2000. Manufacturing jobs are growing at the fastest pace in 14 years. Job layoffs are at a half-century low. Since Trump took office, the number of Americans working part-time because they could not find full-time work has dropped by nearly 700,000, and the number of Americans working full-time jobs has increased by 3 million.

And what is Obama's message? "When you hear how great the economy is doing right now," Obama said, "let's just remember when this recovery started." Ironically, that was precisely the message that drove Obama voters to Trump in 2016. Polls show that in 2016, half of Obama-Trump voters said their incomes were falling behind the cost of living, while another 31 percent said their incomes were merely keeping pace. Yet during the election, they kept hearing from Democrats how well the economy was doing and that they should be grateful for eight years of Obama. Well, now their lives are finally improving -- and they are grateful to Trump.

Democrats like to talk about all the hallowed presidential norms that Trump is breaking. But now it is Obama who is breaking presidential norms with his self-serving foray into partisan demagoguery.