We analyze quadratic performance for switched systems which are composed of a finite set of affine time-varying subsystems, where both subsystem matrices and affine vectors are switched, and no single subsystem has desired quadratic performance. The quadratic performance indexes we deal with include stability, tracking and L2 gain. We show that if a linear convex combination of subsystem matrices is uniformly Hurwitz and another convex combination of affine vectors is zero, then we can design a state-dependent switching law (state feedback) and an output-dependent switching law (output feedback) such that the entire switched affine system is quadratically stable at the origin. In the case where the convex combination of affine vectors is nonzero, we show that the tracking control problem can be posed and solved using a similar switching strategy. Finally, we consider the L2 gain analysis problem for the switched affine time-varying systems under state feedback.