I have a rectangle in my XAML and want to change its Canvas.Left property in code behind:
Canvas.Left
As we are changing the property of the 'object', it would be better to use method suggedte by JaredPar:
theObject.SetValue(Canvas.LeftProperty, 50d);