Nick Bonino put the Sharks ahead 1-0 at 1:25 of the first period. Wedgewood denied an attempt by Gregor and Bonino scored on the rebound with a shot that went five-hole.
Namestnikov tied it 1-1 at 1:50 with a one-timer that was set up by Jamie Benn. It was his first goal with Dallas after being traded from the Detroit Red Wings on March 21.
"Giving up that early goal, it got our attention," Stars coach Rick Bowness said. "I love how we responded. We came right back quickly and got a couple ourselves. I always tell the guys, 'they score, let's go back at them,' and we did."
Hakanpaa made it 2-1 at 8:11 with a shot between the face-off circles before Hintz made it 3-1 at 9:53 when he tipped a shot from John Klingberg.
"I saw 'Klinger' was looking at the net, and I don't even know if he tried to pass to me," Hintz said. "But it caught my stick. I didn't even know if it went in at first"
Robertson extended the lead 4-1 at 19:59 when he banked in a rebound off Kahkonen's back just before the horn.
"That's just, it's not a good goal," Sharks coach Bob Boughner said. "We lost the first period. We won the second and we came out and we won the third, but you can't start off by allowing four goals, and that [fourth] goal right there was the backbreaker. We get a point tonight or maybe two going into overtime, but the difference is two seconds and it's just a bad goal."