Simplified XAML of the slider tooltip
Pulled a variable declaration out of a nested loop