c# - Set Properties Dynamically WPF Application -
i have property as: button1 system.windows.thickness 10,10,10,10 , button name button1 . i'm able set same as propertis.setting.default.button1 = _margin; i have many buttons similar xaml name n property name same, want set margin dynamically button option = sender button; properties.settings.default.option = _margin; is achievable? if how? as values stored in settings key value pairs, can set property has same name of button control as button option = sender button; properties.settings.default[option.name] = _margin;