Grid Maingrid = new Grid(); Slider s1 = new Slider(); Binding minWidthBinding = new Binding(); minWidthBinding.Path = new PropertyPath(Grid.ActualWidthProperty); minWidthBinding.ElementName = "Maingrid"; BindingOperations.SetBinding(s1, Slider.ValueProperty, minWidthBinding);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)