c# - Saving user color settings of a clicked Button in WPF -
i have little problem saving properties of buttons. buttons small , variety of colors. when press 1 button, specified colors changing... , want save them next start up. textbox values can save them ...i can't. code: public mainwindow() { initializecomponent(); //bluecolor.raiseevent(new routedeventargs(button.clickevent)); //this.property = properties.settings.default.usercolor; } private void bluecolor_click(object sender, routedeventargs e) { var bc = new brushconverter(); main.background = (brush)bc.convertfrom("#ff007ce4"); startbutton.foreground = (brush)bc.convertfrom("#ff007ce4"); closebutton.foreground = (brush)bc.convertfrom("#ff007ce4"); properties.settings.default.usercolor = true; properties.settings.default.save(); } private void purplecolor_click(object sender, routedeventargs e) { var bc = new brushconverter(); main.background = (brush)bc.convertfrom("#ff8701b9"); star...