Hello, I answered a very similar question a few months ago here.
While not the middle ages, here are some examples of kings and princes, leading troops from the front