I have the following code:
this.Object.GetType().GetProperty(this.PropertyName).GetValue(this.Object, null);
PropertyName is a string, containing the name of the property I want to get. This works fine for "normal" properties, but I can't get the "Canvas.LeftProperty" or "Canvas.TopProperty".
Can anyone help me out?
Thanks, Chris
I think this is because Canvas.Left is attached property and to retrieve them try this:
Source