I vaguely remember a story (novel or series, sorry, I don't know) that I read in German in the late 1980s or early 1990s. The book was translated from English, though.
It was about a thief who could use magic to exercise his "profession". He was an orphan (not sure about that, maybe he just ran away from home) who was adopted as a kid by an older and rather unfriendly thief who taught him the trade.
The story took place in a medieval world. Thieves weren't the only ones with magic skills. A pecular thing of that world was that you needed an individual trigger to cast magic. In the case of the protagonist, the trigger was physical pain. I remember a scene where his teacher hurt him on purpose (on his hand? with fire?) for the first time to awake in him the ability to control magic.