Perfectionism, and approval addiction: how are these two generated from a trauma? Depression and anxiety most of the time stem from a past trauma, but it is actually not the events, but the thoughts that create the symptoms of depression and anxiety.

Out of those thoughts, perfectionism and approval addiction are prominent, and I, myself, am an example of it. So how does a traumatic event tend to generate the cognition of perfectionism and approval addiction, or does it even tend to generate it or is it, itself a result of it(depression and anxiety)?
I want to say that this kind of issue is environmental. Behaviours of perfectionism are developed because of certain factors that may stem from early childhood (as in how the parents treat the child). If self esteem is measured based on the standards that the authority sets, but the child cannot reach them, they may come to know themselves as inadequate. Freud talks about this in his theory of psychoanalysis and in the psychodynamic theory. 

I don't think it's specifically one case of trauma, but a series of evaluations that causes the development of low self esteem. 

Before the child has a complete theory of mind he may not seperate himself from his environment and in turn mirror or internalize the negative image of how his parents treat him. 
Some evidence suggests that perception becomes more global with age (which may reflect the development of a pragmatic perceptive system that allows faster identification of objects in the environment. ) (Akshoomoff et al., 1995). 

Its possible that this global perceptive system may become tied to negative emotional trauma. Which makes negative behaviours more easily developable. 
Predictions of outcomes of events have also been tied to perception, as perception as been shown to be constructive (in the sense that it builds on itself from past experiences, even emotional ones)  (Sinke,  et al., 2012) 

Individuals who experience abuse may unconsciously recall the outcomes of that abuse during similar situations, causing distress.

Also, some Self theorists may also see the traumatic experiences as negatively affecting the sense of self. Approval addiction may be seen as an act taken to strengthen self identity, as the authority figure did not properly bolster the self esteem during development, so the individual may try to compensate for that by seeking approval. 

Reference

Developmental trends in visuospatial analysis and planning: I. Copying a complex figure. Akshoomoff, Natacha A.; Stiles, Joan
Neuropsychology, Vol 9(3), Jul 1995, 364-377

Sinke, Charlotte B. A. et al. “The Constructive Nature of Affective Vision: Seeing Fearful Scenes Activates Extrastriate Body Area.” PLoS ONE 7.6 (2012): e38118. Web.