Traditionally Hamantashin
were filled with poppy seeds called in Yiddish "Mun" spelled Men Hey
Nun, which spells Haman. The three corners represents the three Avos.
When Haman saw the three Avos his power waned. The corners are based
on the pasuk, "V'Chol Karnei Resha'im Agadei'a", I will uproot the
"corners" of wickedness. This is what the Minhag Yisroel Torah (OC
695:5) brings from the Sefer Matamin.
He also brings from the Yafeh L'Lev
that there was a minhag to eat cheese and dairy products just like on
Shavuos since the gemara Shabbos says that the Bnei Yisroel accepted
the Torah by coercion and Har Sinai and only in the time of
Achashveirosh did they accept it with their free will.