You can also set Element binding using Code. Below is sample code for binding with element in code.
C# Code behind code
namespace WPF.DataBinding.Sample.CS { ///XAML Code :/// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Binding binding=new Binding(); binding.ElementName="mySliderCode"; binding.Path = new PropertyPath("Value"); lblSelectdValue.SetBinding(Label.ContentProperty, binding); } } }