   &lt;TextBlock Name="VolumeLabel" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right"&gt;Volume&lt;/TextBlock&gt;
               &lt;Slider Height="20"
           Value="{Binding Volume, Mode=TwoWay, ElementName=media}"
           Minimum="0" Maximum="1"
           Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2"
               AutomationProperties.LabeledBy="{Binding ElementName=VolumeLabel}"/&gt;
           &lt;/Grid&gt;
       &lt;/StackPanel&gt;
   &lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
      