To use the eyedropper to set the stroke color of objects instead of the fill, hold Ctrl (command in Macintosh). The stroke color will be set to match the fill color of the object that is clicked on.
If the object has a pattern or gradient fill, or if it is a bitmap, the stroke color will be set to the color of the pixel that is clicked on.