A three-layer detector prototype, obtained by stacking three edge-on single photon counting silicon microstrip detectors, has been developed and widely tested. This was done in the framework of the Synchrotron Radiation for Medical Physics/Frontier Radiology (SYRMEP/FRONTRAD) collaboration activities, whose aim is to improve the quality of mammographic examinations operating both on the source and on the detector side. The active surface of the device has been fully characterized making use of an edge-scanning technique and of a well-collimated laminar synchrotron radiation beam. The obtained data (interlayer distances, channel correspondence, etc.) have then been used to combine information coming from each detector layer, without causing any loss in spatial and contrast resolution of the device. Contrast and spatial resolution have also been separately evaluated for each detector layer. Moreover, imaging techniques (phase contrast, refraction, and scatter imaging), resulting in an increased visibility of low absorbing details, have been implemented, and their effectiveness has been tested on a biological sample. Finally, the possibility of simultaneously acquiring different kind of images with the different detector layers is discussed. This would result in maximizing the information extracted from the sample, while at the same time the high absorption efficiency of the detector device would allow a low dose delivery